aboutsummaryrefslogtreecommitdiff
path: root/debianutils/start_stop_daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'debianutils/start_stop_daemon.c')
-rw-r--r--debianutils/start_stop_daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c
index 68df44ae9..3e5dd9faa 100644
--- a/debianutils/start_stop_daemon.c
+++ b/debianutils/start_stop_daemon.c
@@ -519,7 +519,7 @@ int start_stop_daemon_main(int argc UNUSED_PARAM, char **argv)
519 /* why _exit? the child may have changed the stack, 519 /* why _exit? the child may have changed the stack,
520 * so "return 0" may do bad things 520 * so "return 0" may do bad things
521 */ 521 */
522 _exit(EXIT_SUCCESS); 522 _exit_SUCCESS();
523 } 523 }
524 /* Child */ 524 /* Child */
525 setsid(); /* detach from controlling tty */ 525 setsid(); /* detach from controlling tty */
@@ -531,7 +531,7 @@ int start_stop_daemon_main(int argc UNUSED_PARAM, char **argv)
531 */ 531 */
532 pid = xvfork(); 532 pid = xvfork();
533 if (pid != 0) 533 if (pid != 0)
534 _exit(EXIT_SUCCESS); /* Parent */ 534 _exit_SUCCESS(); /* Parent */
535 } 535 }
536 if (opt & OPT_MAKEPID) { 536 if (opt & OPT_MAKEPID) {
537 /* User wants _us_ to make the pidfile */ 537 /* User wants _us_ to make the pidfile */