*: use llist_pop for traverse-and-free list operation
[oweals/busybox.git] / libbb / vfork_daemon_rexec.c
index 7064eb3fbadda9818a192e40a8d633bdbb98f4f8..9624efbb95b3de09f2606ced75fba4dfbc4aa17d 100644 (file)
@@ -230,7 +230,7 @@ void forkexit_or_rexec(char **argv)
        if (pid < 0) /* wtf? */
                bb_perror_msg_and_die("vfork");
        if (pid) /* parent */
-               exit(0);
+               exit(EXIT_SUCCESS);
        /* child - re-exec ourself */
        re_exec(argv);
 }
@@ -244,7 +244,7 @@ void forkexit_or_rexec(void)
        if (pid < 0) /* wtf? */
                bb_perror_msg_and_die("fork");
        if (pid) /* parent */
-               exit(0);
+               exit(EXIT_SUCCESS);
        /* child */
 }
 #define forkexit_or_rexec(argv) forkexit_or_rexec()