diff options
author | Bernhard Reutner-Fischer | 2006-04-12 18:09:26 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2006-04-12 18:09:26 +0000 |
commit | 2c99851181a652358aa3ca58ef38c57e46ae02e4 (patch) | |
tree | 6893f7992748817b64ec66947adc2ca40e13fb8e /networking/httpd.c | |
parent | dac7ff15b7d32deeeef3d9665744fc5774c21d70 (diff) | |
download | busybox-2c99851181a652358aa3ca58ef38c57e46ae02e4.zip busybox-2c99851181a652358aa3ca58ef38c57e46ae02e4.tar.gz |
- patch from Denis Vlasenko to add and use bb_xdaemon()
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index fde8ae4..354c199 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -1,3 +1,4 @@ +/* vi: set sw=4 ts=4: */ /* * httpd implementation for busybox * @@ -2114,8 +2115,7 @@ int httpd_main(int argc, char *argv[]) #if !ENABLE_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY # if !DEBUG - if (daemon(1, 0) < 0) /* don`t change curent directory */ - bb_perror_msg_and_die("daemon"); + bb_xdaemon(1, 0); /* don`t change curent directory */ # endif return miniHttpd(server); #else |