[csw-devel] SF.net SVN: gar:[3042] csw/mgar/pkg/dovecot/trunk

skayser at users.sourceforge.net skayser at users.sourceforge.net
Tue Feb 10 02:21:23 CET 2009


Revision: 3042
          http://gar.svn.sourceforge.net/gar/?rev=3042&view=rev
Author:   skayser
Date:     2009-02-10 01:21:23 +0000 (Tue, 10 Feb 2009)

Log Message:
-----------
dovecot: added upstream patch for auth server related segfaults

Modified Paths:
--------------
    csw/mgar/pkg/dovecot/trunk/Makefile
    csw/mgar/pkg/dovecot/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/dovecot/trunk/files/patch-authcrash.diff

Modified: csw/mgar/pkg/dovecot/trunk/Makefile
===================================================================
--- csw/mgar/pkg/dovecot/trunk/Makefile	2009-02-09 22:45:57 UTC (rev 3041)
+++ csw/mgar/pkg/dovecot/trunk/Makefile	2009-02-10 01:21:23 UTC (rev 3042)
@@ -44,6 +44,9 @@
 # No test suite for Dovecot available
 TEST_SCRIPTS	=
 
+# See http://dovecot.org/list/dovecot/2009-February/037273.html
+PATCHFILES = patch-authcrash.diff
+
 CONFIGURE_ARGS  = $(DIRPATHS)
 CONFIGURE_ARGS += --with-pop3d
 CONFIGURE_ARGS += --with-lda

Modified: csw/mgar/pkg/dovecot/trunk/checksums
===================================================================
--- csw/mgar/pkg/dovecot/trunk/checksums	2009-02-09 22:45:57 UTC (rev 3041)
+++ csw/mgar/pkg/dovecot/trunk/checksums	2009-02-10 01:21:23 UTC (rev 3042)
@@ -1,2 +1,3 @@
 c973eb41aca79fb16630a16f0d84f765  download/dovecot-1.1.11.tar.gz
 f8e71a5be649e71131cf1ad7ea11019a  download/CSWdovecot.preinstall
+1f39cae3a38d10169fe31f246095b67f  download/patch-authcrash.diff

Added: csw/mgar/pkg/dovecot/trunk/files/patch-authcrash.diff
===================================================================
--- csw/mgar/pkg/dovecot/trunk/files/patch-authcrash.diff	                        (rev 0)
+++ csw/mgar/pkg/dovecot/trunk/files/patch-authcrash.diff	2009-02-10 01:21:23 UTC (rev 3042)
@@ -0,0 +1,47 @@
+# HG changeset patch
+# User Timo Sirainen <tss at iki.fi>
+# Date 1234226629 18000
+# Node ID bdc5391e52dfe4590e9e291eba2603ed87caef57
+# Parent 4ddf36b9ee8182f10d8d69af6577b677cda282a0
+master: Don't crash if auth process dies too early.
+
+--- a/src/master/auth-process.c	Thu Feb 05 18:29:06 2009 -0500
++++ b/src/master/auth-process.c	Mon Feb 09 19:43:49 2009 -0500
+@@ -353,7 +353,7 @@ static void auth_process_destroy(struct 
+ 
+ 	if (!p->initialized && io_loop_is_running(ioloop) && !p->external) {
+ 		/* log the process exit and kill ourself */
+-		child_processes_deinit();
++		child_processes_flush();
+ 		log_deinit();
+ 		i_fatal("Auth process died too early - shutting down");
+ 	}
+--- a/src/master/child-process.c	Thu Feb 05 18:29:06 2009 -0500
++++ b/src/master/child-process.c	Mon Feb 09 19:43:49 2009 -0500
+@@ -219,10 +219,15 @@ void child_processes_init(void)
+ 	lib_signals_set_handler(SIGCHLD, TRUE, sigchld_handler, NULL);
+ }
+ 
+-void child_processes_deinit(void)
++void child_processes_flush(void)
+ {
+ 	/* make sure we log if child processes died unexpectedly */
+ 	sigchld_handler(SIGCHLD, NULL);
++}
++
++void child_processes_deinit(void)
++{
++	child_processes_flush();
+ 	lib_signals_unset_handler(SIGCHLD, sigchld_handler, NULL);
+ 	hash_destroy(&processes);
+ }
+--- a/src/master/child-process.h	Thu Feb 05 18:29:06 2009 -0500
++++ b/src/master/child-process.h	Mon Feb 09 19:43:49 2009 -0500
+@@ -40,6 +40,7 @@ void child_process_set_destroy_callback(
+ 					child_process_destroy_callback_t *cb);
+ 
+ void child_processes_init(void);
++void child_processes_flush(void);
+ void child_processes_deinit(void);
+ 
+ #endif


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list