[dovecot-cvs] dovecot/src/login main.c,1.8,1.9

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


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

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/login/main.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- main.c	26 Nov 2002 13:27:13 -0000	1.8
+++ main.c	1 Dec 2002 15:39:20 -0000	1.9
@@ -4,6 +4,7 @@
 #include "ioloop.h"
 #include "lib-signals.h"
 #include "restrict-access.h"
+#include "fd-close-on-exec.h"
 #include "auth-connection.h"
 #include "master.h"
 #include "client.h"
@@ -192,6 +193,9 @@
 
 int main(int argc __attr_unused__, char *argv[] __attr_unused__)
 {
+#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