Date: Tue, 16 Mar 2010 10:23:20 -0500 From: Peter Steele <psteele@maxiscale.com> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: How to make a process detect time zone change? Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3B27D7F5@MBX03.exg5.exghost.com>
next in thread | raw e-mail | index | archive | help
We have a system controlled through a Java GUI and one of the commands prov= ided in the GUI is to change the date/time, including the time zone. When t= he time zone is changed the FreeBSD system immediately recognizes the chang= e (that is, the date command from the command line shows the correct time a= nd time zone). However, our running C apps do not recognize that a time zon= e change has occurred unless they are restarted. What's the proper way to i= nform an active process that a time zone change has occurred? I've tried tz= set() and tzsetwall() but neither seem to do the trick. The only thing I've= found that works is to restart the process, and that's not really a soluti= on.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7B9397B189EB6E46A5EE7B4C8A4BB7CB3B27D7F5>