[dovecot-cvs] dovecot/src/auth main.c,1.7,1.8

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


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

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/auth/main.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- main.c	26 Nov 2002 20:04:08 -0000	1.7
+++ main.c	1 Dec 2002 15:39:20 -0000	1.8
@@ -5,6 +5,7 @@
 #include "network.h"
 #include "lib-signals.h"
 #include "restrict-access.h"
+#include "fd-close-on-exec.h"
 #include "randgen.h"
 #include "auth.h"
 #include "cookie.h"
@@ -93,6 +94,9 @@
 
 int main(int argc __attr_unused__, char *argv[] __attr_unused__)
 {
+#ifdef DEBUG
+        fd_debug_verify_leaks(4, 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