Implement 32/64 bit consumer support
[lttng-tools.git] / lttng-sessiond / ust-consumer.c
index 866d7bd56bc199e8bed90b2e3abc1ec88f48a070..8a2ba728d76dc0b8a6e34c66a90819bc6a12e7f4 100644 (file)
@@ -124,6 +124,11 @@ int ust_consumer_send_session(int consumer_fd, struct ust_app_session *usess)
 
        DBG("Sending metadata stream fd");
 
+       if (consumer_fd < 0) {
+               ERR("Consumer has negative file descriptor");
+               return -EINVAL;
+       }
+
        if (usess->metadata->obj->shm_fd != 0) {
                int fd;
                int fds[2];
This page took 0.023036 seconds and 4 git commands to generate.