Exit properly when forking.
authorBrenden Matthews <brenden@rty.ca>
Sun, 19 Jul 2009 20:55:41 +0000 (14:55 -0600)
committerBrenden Matthews <brenden@rty.ca>
Sun, 19 Jul 2009 20:55:41 +0000 (14:55 -0600)
src/conky.c

index 9c73e38..ed77172 100644 (file)
@@ -9283,7 +9283,7 @@ void initialisation(int argc, char **argv) {
                                fprintf(stderr, PACKAGE_NAME": forked to background, pid is %d\n",
                                        pid);
                                fflush(stderr);
-                               return;
+                               exit(EXIT_SUCCESS);
                }
        }