Re: OpenSMTPD ignores the system time zone in mail header and logfile
On Mon, 12 Dec 2022 20:49:06 +0100 (CET) "Nils" wrote: > O.k., thanks. But has tzset() also effect on the forked processes, i. > e. is the timezone data then also available for the forked processes? afaik the processes are created via fork+exec to rerandomize the address space layout. so all processes do log_init with the tzset(3). but even if they where just forked it would work, since the child is a clone of the parent.
Re: OpenSMTPD ignores the system time zone in mail header and logfile
Thomas L. schrieb am 10.12.2022 19:53 (GMT +01:00): > On Sat, 10 Dec 2022 19:03:23 +0100 (CET) > "Nils" wrote: >> And why does this problem occur in Linux, but *not* in OpenBSD? >> > > log_init calls tzset(3), which reads the timezone data early. not sure > why this does not work on Linux. > > O.k., thanks. But has tzset() also effect on the forked processes, i. e. is the timezone data then also available for the forked processes?