Re: How to signal a time zone change?

2009-08-10 Thread Brian Somers
On Fri, 7 Aug 2009 15:08:16 -0700 "Peter Steele" wrote: > >What's the value of the TZ environment variable for the C apps? You may > need to have them read the new value from somewhere, and then rerun > tzset(). > > The default value of the TZ environment variable is null. I just tried > passing

RE: How to signal a time zone change?

2009-08-07 Thread Peter Steele
>What's the value of the TZ environment variable for the C apps? You may need to have them read the new value from somewhere, and then rerun tzset(). The default value of the TZ environment variable is null. I just tried passing the explicitly time zone value to the C app and setting TZ to that va

RE: How to signal a time zone change?

2009-08-07 Thread Peter Steele
>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

Re: How to signal a time zone change?

2009-08-07 Thread Julian Elischer
Peter Steele wrote: We have a suite of applications with a Java GUI controlling everything. One of the actions the user can perform is to set the time zone. We do this through our Java application and update the /etc/localtime as required. We also make an API call to tell the JVM that the time zo

How to signal a time zone change?

2009-08-07 Thread Peter Steele
We have a suite of applications with a Java GUI controlling everything. One of the actions the user can perform is to set the time zone. We do this through our Java application and update the /etc/localtime as required. We also make an API call to tell the JVM that the time zone as changed, and fro