diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/signals.c | 2 | ||||
-rw-r--r-- | libbb/vfork_daemon_rexec.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libbb/signals.c b/libbb/signals.c index 685c55230..1342c89a8 100644 --- a/libbb/signals.c +++ b/libbb/signals.c | |||
@@ -89,7 +89,7 @@ void kill_myself_with_sig(int sig) | |||
89 | signal(sig, SIG_DFL); | 89 | signal(sig, SIG_DFL); |
90 | sig_unblock(sig); | 90 | sig_unblock(sig); |
91 | raise(sig); | 91 | raise(sig); |
92 | _exit(1); /* Should not reach it */ | 92 | _exit(EXIT_FAILURE); /* Should not reach it */ |
93 | } | 93 | } |
94 | 94 | ||
95 | void signal_SA_RESTART_empty_mask(int sig, void (*handler)(int)) | 95 | void signal_SA_RESTART_empty_mask(int sig, void (*handler)(int)) |
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c index 7064eb3fb..9624efbb9 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c | |||
@@ -230,7 +230,7 @@ void forkexit_or_rexec(char **argv) | |||
230 | if (pid < 0) /* wtf? */ | 230 | if (pid < 0) /* wtf? */ |
231 | bb_perror_msg_and_die("vfork"); | 231 | bb_perror_msg_and_die("vfork"); |
232 | if (pid) /* parent */ | 232 | if (pid) /* parent */ |
233 | exit(0); | 233 | exit(EXIT_SUCCESS); |
234 | /* child - re-exec ourself */ | 234 | /* child - re-exec ourself */ |
235 | re_exec(argv); | 235 | re_exec(argv); |
236 | } | 236 | } |
@@ -244,7 +244,7 @@ void forkexit_or_rexec(void) | |||
244 | if (pid < 0) /* wtf? */ | 244 | if (pid < 0) /* wtf? */ |
245 | bb_perror_msg_and_die("fork"); | 245 | bb_perror_msg_and_die("fork"); |
246 | if (pid) /* parent */ | 246 | if (pid) /* parent */ |
247 | exit(0); | 247 | exit(EXIT_SUCCESS); |
248 | /* child */ | 248 | /* child */ |
249 | } | 249 | } |
250 | #define forkexit_or_rexec(argv) forkexit_or_rexec() | 250 | #define forkexit_or_rexec(argv) forkexit_or_rexec() |