libust: never inline functions that may be called from external components
[lttng-ust.git] / ustd / ustd.c
index 6f4acf8f5e0722b6dd6e9bef8d42a80c49a369b8..24087d324a54311b1bb780b3e26eb4d8db3622d7 100644 (file)
@@ -69,7 +69,7 @@ int get_subbuffer(struct buffer_info *buf)
 
        asprintf(&send_msg, "get_subbuffer %s", buf->name);
        result = ustcomm_send_request(&buf->conn, send_msg, &received_msg);
-       if(result == -1 && errno == EPIPE || result == 0) {
+       if((result == -1 && errno == EPIPE) || result == 0) {
                DBG("app died while being traced");
                retval = GET_SUBBUF_DIED;
                goto end;
@@ -203,6 +203,7 @@ void *consumer_thread(void *arg)
                }
 
                /* put the subbuffer */
+               /* FIXME: we actually should unput the buffer before consuming... */
                result = put_subbuffer(buf);
                if(result == -1) {
                        ERR("unknown error putting subbuffer (channel=%s)", buf->name);
This page took 0.028191 seconds and 4 git commands to generate.