<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Fixed upstream.<br>
<br>
<br>
<div class="moz-forward-container"> <base
href="https://bugs.exim.org/"> <span class="vcard"><a
moz-do-not-send="true" class="email"
href="mailto:git@exim.org" title="Git Commit
<git@exim.org>"> <span class="fn">Git Commit</span></a>
</span> changed <a moz-do-not-send="true" class="bz_bug_link
bz_status_ASSIGNED " title="ASSIGNED - SMTP listener keeping log
file open for days"
href="https://bugs.exim.org/show_bug.cgi?id=728">bug 728</a> <br>
<table border="1" cellpadding="8" cellspacing="0">
<tbody>
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td> </td>
<td><a class="moz-txt-link-abbreviated" href="mailto:git@exim.org">git@exim.org</a> </td>
</tr>
</tbody>
</table>
<p> </p>
<div> <b><a moz-do-not-send="true" class="bz_bug_link
bz_status_ASSIGNED " title="ASSIGNED - SMTP listener keeping
log file open for days"
href="https://bugs.exim.org/show_bug.cgi?id=728#c16">Comment
# 16</a> on <a moz-do-not-send="true" class="bz_bug_link
bz_status_ASSIGNED " title="ASSIGNED - SMTP listener keeping
log file open for days"
href="https://bugs.exim.org/show_bug.cgi?id=728">bug 728</a>
from <span class="vcard"><a moz-do-not-send="true"
class="email" href="mailto:git@exim.org" title="Git Commit
<git@exim.org>"> <span class="fn">Git Commit</span></a>
</span></b>
<pre>Git commit:
<a moz-do-not-send="true" href="http://git.exim.org/exim.git/commitdiff/c8899c20aa08c9ae6a4c291aad23ba90512bebe4">http://git.exim.org/exim.git/commitdiff/c8899c20aa08c9ae6a4c291aad23ba90512bebe4</a>
commit c8899c20aa08c9ae6a4c291aad23ba90512bebe4
Author: Jeremy Harris <<a moz-do-not-send="true" href="mailto:jgh146exb@wizmail.org">jgh146exb@wizmail.org</a>>
AuthorDate: Tue Aug 25 10:36:27 2015 +0100
Commit: Jeremy Harris <<a moz-do-not-send="true" href="mailto:jgh146exb@wizmail.org">jgh146exb@wizmail.org</a>>
CommitDate: Tue Aug 25 10:36:27 2015 +0100
Close logs after daemon-process exceptional write. <a moz-do-not-send="true" class="bz_bug_link
bz_status_ASSIGNED " title="ASSIGNED - SMTP listener keeping log file open for days" href="show_bug.cgi?id=728">Bug 728</a>
---
doc/doc-txt/ChangeLog | 7 +++++++
src/src/daemon.c | 1 +
2 files changed, 8 insertions(+)
diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index 0ec2964..cb43f0f 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -18,6 +18,13 @@ TF/02 Improve the consistency of logging incoming and
outgoing interfaces.
outgoing_interface log selector which allows you to disable the
outgoing I= field.
+JH/02 <a moz-do-not-send="true" class="bz_bug_link
bz_status_ASSIGNED " title="ASSIGNED - SMTP listener keeping log file open for days" href="show_bug.cgi?id=728">Bug 728</a>: Close logfiles after a daemon-process "exceptional" log write.
+ If not running log_selector +smtp_connection the mainlog would be held
+ open indefinitely after a "too many connections" event, including to a
+ deleted file after a log rotate. Leave the per net connection logging
+ leaving it open for efficiency as that will be quickly detected by the
+ check on the next write.
+
Exim version 4.86
-----------------
diff --git a/src/src/daemon.c b/src/src/daemon.c
index 2d10387..e1ff9a1 100644
--- a/src/src/daemon.c
+++ b/src/src/daemon.c
@@ -735,6 +735,7 @@ else (void)close(dup_accept_socket);
/* Release any store used in this process, including the store used for
holding
the incoming host address and an expanded active_hostname. */
+log_close_all();
store_reset(reset_point);
sender_host_address = NULL;
}
</pre>
</div>
</div>
</body>
</html>