r1786 - trunk/varnish-cache/bin/varnishd

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Jul 30 16:22:23 CEST 2007


In message <20070730135448.E14DB1EC2A3 at projects.linpro.no>, des at projects.linpro.no writes:
>Author: des
>Date: 2007-07-30 15:54:48 +0200 (Mon, 30 Jul 2007)
>New Revision: 1786
>
>Modified:
>   trunk/varnish-cache/bin/varnishd/varnishd.c
>Log:
>Explicitly set TZ to GMT.

I am not happy about this, it forces all timestamps we may generate,
including syslog &c to be GMT.

We should only use this hack on deficient OS's.

btw: on sysV derivatives, check libbsd.

>+	setenv("TZ", "GMT", 1);
>+	tzset();
>+

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-commit mailing list