aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index efe57ecf7..eeaa4bec1 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -2878,10 +2878,16 @@ int httpd_main(int argc UNUSED_PARAM, char **argv)
2878 mingw_daemonize(argv); 2878 mingw_daemonize(argv);
2879#endif 2879#endif
2880 2880
2881 /* Chdir to home (unless we were re-execed for NOMMU case:
2882 * we are already in the home dir then).
2883 */
2881#if ENABLE_PLATFORM_MINGW32 2884#if ENABLE_PLATFORM_MINGW32
2882 if (!(opt & OPT_INETD)) 2885 if (!(opt & OPT_INETD))
2886#else
2887 if (!re_execed)
2883#endif 2888#endif
2884 xchdir(home_httpd); 2889 xchdir(home_httpd);
2890
2885 if (!(opt & OPT_INETD)) { 2891 if (!(opt & OPT_INETD)) {
2886#ifdef SIGCHLD 2892#ifdef SIGCHLD
2887 signal(SIGCHLD, SIG_IGN); 2893 signal(SIGCHLD, SIG_IGN);