[dovecot-cvs] dovecot/src/imap main.c,1.10,1.11

cras at procontrol.fi cras at procontrol.fi
Sun Dec 1 17:39:22 EET 2002


Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv1500/src/imap

Modified Files:
	main.c 
Log Message:
We use close-on-exec flag now to make sure that master process closes the
fds when executing other processes.



Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/main.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- main.c	20 Nov 2002 14:04:04 -0000	1.10
+++ main.c	1 Dec 2002 15:39:20 -0000	1.11
@@ -5,6 +5,7 @@
 #include "lib-signals.h"
 #include "rawlog.h"
 #include "restrict-access.h"
+#include "fd-close-on-exec.h"
 
 #include <stdlib.h>
 #include <syslog.h>
@@ -104,6 +105,9 @@
 
 int main(int argc, char *argv[])
 {
+#ifdef DEBUG
+        fd_debug_verify_leaks(3, 1024);
+#endif
 	/* NOTE: we start rooted, so keep the code minimal until
 	   restrict_access_by_env() is called */
 	lib_init();




More information about the dovecot-cvs mailing list