This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU Mailutils".
http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=523bea73592f869effa7300b0c703219c66d7386 The branch, master has been updated via 523bea73592f869effa7300b0c703219c66d7386 (commit) from eb838fece8d5c38fb6fd4ea2b33d3982607acfff (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 523bea73592f869effa7300b0c703219c66d7386 Author: Sergey Poznyakoff <g...@gnu.org.ua> Date: Sun Jan 9 13:22:47 2011 +0200 imap4d: complement 435f1918df. * imap4d/bye.c (imap4d_bye0): Set iostream to NULL, to avoid further delivery of the SIGPIPE. ----------------------------------------------------------------------- Summary of changes: imap4d/bye.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/imap4d/bye.c b/imap4d/bye.c index 541aa0d..d5f4086 100644 --- a/imap4d/bye.c +++ b/imap4d/bye.c @@ -112,6 +112,14 @@ imap4d_bye0 (int reason, struct imap4d_command *command) mu_set_signals (sigpipe, sigtab, MU_ARRAY_SIZE (sigtab)); if (setjmp (pipejmp) == 0) io_completion_response (command, RESP_OK, "Completed"); + else + /* Invalidate iostream. This creates a mild memory leak, as the + stream is not destroyed by util_bye, but at least this avoids + endless loop which would happen when mu_stream_flush would + try to flush buffers on an already broken pipe. + FIXME: There must be a special function for that, I guess. + Something like mu_stream_invalidate. */ + iostream = NULL; } util_bye (); hooks/post-receive -- GNU Mailutils _______________________________________________ Commit-mailutils mailing list Commit-mailutils@gnu.org http://lists.gnu.org/mailman/listinfo/commit-mailutils