aboutsummaryrefslogtreecommitdiff
path: root/libbb/vfork_daemon_rexec.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-19 09:29:47 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-19 09:29:47 +0000
commit636a1f85e89432601c59cdc3239fc867b4adf051 (patch)
treed43c9ca120c29bf2d4567b1bb0674c6a8bae2b6d /libbb/vfork_daemon_rexec.c
parentcb83abd7b6b052224c1f3b998e863aac76914afd (diff)
downloadbusybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz
busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.tar.bz2
busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.zip
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
Diffstat (limited to 'libbb/vfork_daemon_rexec.c')
-rw-r--r--libbb/vfork_daemon_rexec.c4
1 files changed, 2 insertions, 2 deletions
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()