aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-12 18:09:26 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-12 18:09:26 +0000
commit2c99851181a652358aa3ca58ef38c57e46ae02e4 (patch)
tree6893f7992748817b64ec66947adc2ca40e13fb8e /networking/httpd.c
parentdac7ff15b7d32deeeef3d9665744fc5774c21d70 (diff)
downloadbusybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.tar.gz
busybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.tar.bz2
busybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.zip
- patch from Denis Vlasenko to add and use bb_xdaemon()
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index fde8ae4bd..354c199e7 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1,3 +1,4 @@
1/* vi: set sw=4 ts=4: */
1/* 2/*
2 * httpd implementation for busybox 3 * httpd implementation for busybox
3 * 4 *
@@ -2114,8 +2115,7 @@ int httpd_main(int argc, char *argv[])
2114 2115
2115#if !ENABLE_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY 2116#if !ENABLE_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY
2116# if !DEBUG 2117# if !DEBUG
2117 if (daemon(1, 0) < 0) /* don`t change curent directory */ 2118 bb_xdaemon(1, 0); /* don`t change curent directory */
2118 bb_perror_msg_and_die("daemon");
2119# endif 2119# endif
2120 return miniHttpd(server); 2120 return miniHttpd(server);
2121#else 2121#else