[dovecot-cvs] dovecot/src/master main.c,1.49,1.50

cras at procontrol.fi cras at procontrol.fi
Wed Jun 23 20:48:38 EEST 2004


Update of /home/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv5022/master

Modified Files:
	main.c 
Log Message:
DEBUG: If GDB environment is set, don't do fd leak checks.



Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/main.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- main.c	23 May 2004 20:03:51 -0000	1.49
+++ main.c	23 Jun 2004 17:48:36 -0000	1.50
@@ -37,6 +37,9 @@
 struct hash_table *pids;
 int null_fd, inetd_login_fd;
 uid_t master_uid;
+#ifdef DEBUG
+static int gdb;
+#endif
 
 int validate_str(const char *str, size_t max_len)
 {
@@ -57,6 +60,10 @@
 
 	/* we'll log through master process */
 	env_put("LOG_TO_MASTER=1");
+
+#ifdef DEBUG
+	if (gdb) env_put("GDB=1");
+#endif
 }
 
 static void sig_quit(int signo __attr_unused__)
@@ -469,6 +476,9 @@
 		exit(FATAL_DEFAULT);
 	open_fds();
 
+#ifdef DEBUG
+	gdb = getenv("GDB") != NULL;
+#endif
 	/* we don't need any environment */
 	env_clean();
 



More information about the dovecot-cvs mailing list