diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:29:47 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:29:47 +0000 |
commit | 636a1f85e89432601c59cdc3239fc867b4adf051 (patch) | |
tree | d43c9ca120c29bf2d4567b1bb0674c6a8bae2b6d /libbb | |
parent | cb83abd7b6b052224c1f3b998e863aac76914afd (diff) | |
download | busybox-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz |
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
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) signal(sig, SIG_DFL); sig_unblock(sig); raise(sig); - _exit(1); /* Should not reach it */ + _exit(EXIT_FAILURE); /* Should not reach it */ } 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) 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() |