Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3535:08b3e3fd0bc5 HEAD
The master process itself also needs the TZ environment
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 15 Aug 2005 01:08:51 +0300 |
parents | a9be1824403b |
children | 6da16ce12b14 |
files | src/master/main.c |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/master/main.c Mon Aug 15 00:54:20 2005 +0300 +++ b/src/master/main.c Mon Aug 15 01:08:51 2005 +0300 @@ -629,13 +629,17 @@ if (exec_protocol != NULL) mail_process_exec(exec_protocol, exec_section); - /* save TZ environment for child processes. AIX depends on it to get - the timezone correctly. */ + /* save TZ environment. AIX depends on it to get the timezone + correctly. */ env_tz = getenv("TZ"); - /* we don't need any other environment anymore */ + /* clean up the environment of everything */ env_clean(); + /* put back the TZ */ + if (env_tz != NULL) + env_put(t_strconcat("TZ=", env_tz, NULL)); + open_fds(); if (!foreground)