Mercurial > masqmail
view docs/old-manual/manual.html @ 72:ad034b57f3b2
fixed Debian bug 536060 (log files are closed after SIGHUP receival)
Explanation:
When run in daemon mode, first the log files are opened. They get
assigned to the file descriptors 3 and 4 usually. Then std{in,out,err}
are closed. When SIGHUP comes in, all open files are closes and
masqmail reexecutes itself. The new masqmail instance opens the log
files at fd 0 and 1 now, but std{in,out,err} are closed afterwards,
thus the log files are closed.
The fix is to close the log files before std{in,out,err} are closed,
in case the log files have higher fds. After std{in,out,err} were
closed, the log files get opened again, now.
See also: http://bugs.debian.org/536060
author | meillo@marmaro.de |
---|---|
date | Wed, 16 Jun 2010 10:32:20 +0200 |
parents | f6a6f55b7b9e |
children |
line wrap: on
line source
<HTML> <HEAD> <TITLE>MasqMail - Manual </TITLE> </HEAD> <BODY TEXT="#000000" LINK="#0000ff" BGCOLOR="#ffffff"> <center> <table width="80%"> <tr><td> <table width="100%" bgcolor="#0000aa" cellspacing=0 cellpadding=0> <tr> <td> <a href="index.html"> <img width="20" src = "../images/u_arrow.gif" alt = "index"> </a> </td> <td align=center width="100%"><font size="6" color = "#ffffff">Manual</font></td> </tr> </table> <a href = "install.html">Installation</a><br> <a href = "faq.html">Frequently Asked Questions</a><br> <br> <a href = "docs/masqmail.8.html">Command line options</a><br> <a href = "docs/masqmail.conf.5.html">Configuration</a><br> <a href = "docs/masqmail.route.5.html">Routes</a><br> <a href = "docs/masqmail.aliases.5.html">Alias File Format</a><br> <a href = "docs/masqmail.get.5.html">Mail Get Configuration</a><br> </td></tr> <tr><td> <p> <hr> <address><a href = "mailto:oku@masqmail.cx">Oliver Kurth</a></address> Last modified: Fri, 28 Jul 2000 09:13:20 +0200 </p> </table> </center> </BODY> </HEAD>