Add close unix socket function to libcomm API
[lttng-tools.git] / ltt-sessiond / ltt-sessiond.c
index 3590d7e444c685147cf74c3a2ece2e1de2831367..eee4cc84fb1729cc02afc36a3f04d23251bc7d3d 100644 (file)
@@ -217,7 +217,7 @@ static void *thread_manage_clients(void *data)
                 * request of the client.
                 */
                ret = lttcomm_recv_unix_sock(sock, &lsm, sizeof(lsm));
-               if (ret < 0) {
+               if (ret <= 0) {
                        continue;
                }
 
@@ -897,6 +897,7 @@ static void sighandler(int sig)
 {
        switch (sig) {
                case SIGPIPE:
+                       return;
                case SIGINT:
                case SIGTERM:
                        cleanup();
This page took 0.031602 seconds and 4 git commands to generate.