Fix cleanup bug
authorDavid Goulet <david.goulet@polymtl.ca>
Thu, 28 Apr 2011 14:49:40 +0000 (10:49 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Thu, 28 Apr 2011 14:51:08 +0000 (10:51 -0400)
If the daemon was already running, a cleanup occured making
the two unix sockets being unlinked.

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
ltt-sessiond/ltt-sessiond.c

index 9c33ff9ec40e71a00ccd5dd4a860e21154a20cd6..839c5204d08db774653090516a1cf803d968c854 100644 (file)
@@ -1136,7 +1136,10 @@ int main(int argc, char **argv)
         */
        if ((ret = check_existing_daemon()) == 0) {
                ERR("Already running daemon.\n");
-               goto error;
+               /* We do not goto error because we must not
+                * cleanup() because a daemon is already working.
+                */
+               return EXIT_FAILURE;
        }
 
        if (set_signal_handler() < 0) {
This page took 0.027023 seconds and 5 git commands to generate.