diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-04-12 18:09:26 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-04-12 18:09:26 +0000 |
commit | 36abcfa57f39129886621df00e4f4bc3381b479f (patch) | |
tree | 6893f7992748817b64ec66947adc2ca40e13fb8e /debianutils | |
parent | 00657c96b9b3963230d89ccc3dc2959d034673e7 (diff) | |
download | busybox-w32-36abcfa57f39129886621df00e4f4bc3381b479f.tar.gz busybox-w32-36abcfa57f39129886621df00e4f4bc3381b479f.tar.bz2 busybox-w32-36abcfa57f39129886621df00e4f4bc3381b479f.zip |
- patch from Denis Vlasenko to add and use bb_xdaemon()
git-svn-id: svn://busybox.net/trunk/busybox@14834 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'debianutils')
-rw-r--r-- | debianutils/start_stop_daemon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c index 5b689740e..b44a23b4b 100644 --- a/debianutils/start_stop_daemon.c +++ b/debianutils/start_stop_daemon.c | |||
@@ -275,8 +275,7 @@ start_stop_daemon_main(int argc, char **argv) | |||
275 | } | 275 | } |
276 | *--argv = startas; | 276 | *--argv = startas; |
277 | if (opt & SSD_OPT_BACKGROUND) { | 277 | if (opt & SSD_OPT_BACKGROUND) { |
278 | if (daemon(0, 0) == -1) | 278 | bb_xdaemon(0, 0); |
279 | bb_perror_msg_and_die ("unable to fork"); | ||
280 | setsid(); | 279 | setsid(); |
281 | } | 280 | } |
282 | if (opt & SSD_OPT_MAKEPID) { | 281 | if (opt & SSD_OPT_MAKEPID) { |