Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Aug 2009 14:20:18 -0700
From:      "Peter Steele" <psteele@webmail.maxiscale.com>
To:        "Julian Elischer" <julian@elischer.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   RE: How to signal a time zone change?
Message-ID:  <B8A480488C0C6849826655761349EA431F7171@owa.webmail.maxiscale.com>
References:  <B8A480488C0C6849826655761349EA431F716A@owa.webmail.maxiscale.com> <4A7C9738.10103@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>You need to signal your app in some way.. Assuming you have source for
the app then you can monitor /etc/localtime (or /etc) for change with
kevent.

Signaling our C apps aren't the problem. We have an IPC framework in
place and we can easily tell the C apps when the user has changed the
time zone via the GUI. The problem is I can't figure out what C calls
are needed to instantiate the time zone change. Based on the
documentation, I would think that tzset() would do the trick once
/etc/localtime has been updated by the Java app, but this does not work.
The only way I've discovered that works is to restart our C apps and we
want to avoid that.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B8A480488C0C6849826655761349EA431F7171>