aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-05-16 07:08:00 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-05-16 07:08:00 +0000
commitc40caa60da20e19c7325667e3ce0654ecb7024b6 (patch)
treeb571bc501fc8c6c1c5490c1e2f739dfbfd37ba32
parente03daf6ee9ed1f922894c614f91f242b8c80f759 (diff)
downloadmailfromd-c40caa60da20e19c7325667e3ce0654ecb7024b6.tar.gz
mailfromd-c40caa60da20e19c7325667e3ce0654ecb7024b6.tar.bz2
(mailfromd_daemon): Leave the first three descriptors open before attemtping to restart
git-svn-id: file:///svnroot/mailfromd/trunk@1437 7a8a7f39-df28-0410-adc6-e0d955640f24
-rw-r--r--src/engine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine.c b/src/engine.c
index 35891677..bcfbbdd6 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -1409,8 +1409,8 @@ mailfromd_daemon()
mu_error(_("Warning: script file is given "
"without full file name"));
else
- mu_error(_("Warning: mailfromd started without "
- "full file name"));
+ mu_error(_("Warning: mailfromd started "
+ "without full file name"));
mu_error(_("Warning: restart (SIGHUP) will not work"));
}
signal(SIGHUP, sig_stop);
@@ -1441,7 +1441,7 @@ mailfromd_daemon()
mu_error(_("mailfromd restarting"));
mu_daemon_remove_pidfile();
- for (i = getmaxfd(); i > 0; i--)
+ for (i = getmaxfd(); i > 2; i--)
close(i);
execv(x_argv[0], x_argv);
log_setup(0);

Return to:

Send suggestions and report system problems to the System administrator.