to_copy -= ret;
}
if (ret < 0 && errno == EINTR) {
- if (lttng_live && bt_graph_is_canceled(lttng_live->graph)) {
+ if (lttng_live_is_canceled(lttng_live)) {
break;
} else {
continue;
for (;;) {
ret = bt_send_nosigpipe(fd, buf, len);
if (ret < 0 && errno == EINTR) {
- if (lttng_live && bt_graph_is_canceled(lttng_live->graph)) {
+ if (lttng_live_is_canceled(lttng_live)) {
break;
} else {
continue;
return retstatus;
error:
- if (bt_graph_is_canceled(lttng_live->graph)) {
+ if (lttng_live_is_canceled(lttng_live)) {
retstatus = BT_CTF_LTTNG_LIVE_ITERATOR_STATUS_AGAIN;
} else {
retstatus = BT_CTF_LTTNG_LIVE_ITERATOR_STATUS_ERROR;
return retstatus;
error:
- if (bt_graph_is_canceled(lttng_live->graph)) {
+ if (lttng_live_is_canceled(lttng_live)) {
retstatus = BT_CTF_NOTIF_ITER_MEDIUM_STATUS_AGAIN;
} else {
retstatus = BT_CTF_NOTIF_ITER_MEDIUM_STATUS_ERROR;
return status;
error:
- if (bt_graph_is_canceled(lttng_live->graph)) {
+ if (lttng_live_is_canceled(lttng_live)) {
status = BT_CTF_LTTNG_LIVE_ITERATOR_STATUS_AGAIN;
} else {
status = BT_CTF_LTTNG_LIVE_ITERATOR_STATUS_ERROR;