dovecot-2.0: DEBUG: Preserve GDB environment when executing dove...
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 13 01:55:08 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/2eecf682262a
changeset: 9269:2eecf682262a
user: Timo Sirainen <tss at iki.fi>
date: Tue May 12 18:55:02 2009 -0400
description:
DEBUG: Preserve GDB environment when executing doveconf.
diffstat:
1 file changed, 6 insertions(+)
src/lib-master/master-service.c | 6 ++++++
diffs (23 lines):
diff -r f389f56a68a8 -r 2eecf682262a src/lib-master/master-service.c
--- a/src/lib-master/master-service.c Tue May 12 18:54:41 2009 -0400
+++ b/src/lib-master/master-service.c Tue May 12 18:55:02 2009 -0400
@@ -277,6 +277,9 @@ void master_service_env_clean(bool prese
void master_service_env_clean(bool preserve_home)
{
const char *user, *tz, *home;
+#ifdef DEBUG
+ bool gdb = getenv("GDB") != NULL;
+#endif
user = getenv("USER");
if (user != NULL)
@@ -296,6 +299,9 @@ void master_service_env_clean(bool prese
if (user != NULL) env_put(user);
if (tz != NULL) env_put(tz);
if (home != NULL) env_put(home);
+#ifdef DEBUG
+ if (gdb) env_put("GDB=1");
+#endif
}
void master_service_set_client_limit(struct master_service *service,
More information about the dovecot-cvs
mailing list