- ret = bt_send_nosigpipe(fd, buf, len);
- if (ret < 0 && errno == EINTR) {
- if (lttng_live && bt_graph_is_canceled(lttng_live->graph)) {
+ ret = bt_socket_send_nosigpipe(sock, buf, len);
+ if (ret == BT_SOCKET_ERROR && bt_socket_interrupted()) {
+ if (lttng_live_is_canceled(lttng_live)) {