From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 7 21:14:42 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81036106566B for ; Fri, 7 Aug 2009 21:14:42 +0000 (UTC) (envelope-from psteele@webmail.maxiscale.com) Received: from k2smtpout01-01.prod.mesa1.secureserver.net (k2smtpout01-01.prod.mesa1.secureserver.net [64.202.189.88]) by mx1.freebsd.org (Postfix) with SMTP id 40AD68FC0A for ; Fri, 7 Aug 2009 21:14:42 +0000 (UTC) Received: (qmail 18169 invoked from network); 7 Aug 2009 21:14:42 -0000 Received: from unknown (HELO owa.webmail.maxiscale.com) (72.167.52.135) by k2smtpout01-01.prod.mesa1.secureserver.net (64.202.189.88) with ESMTP; 07 Aug 2009 21:14:42 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 7 Aug 2009 14:20:18 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to signal a time zone change? Thread-Index: AcoXo6gPJ4J8K2XaQaW7axiI+bcOPwAAAunQ References: <4A7C9738.10103@elischer.org> From: "Peter Steele" To: "Julian Elischer" X-Mailman-Approved-At: Fri, 07 Aug 2009 21:17:00 +0000 Cc: freebsd-hackers@freebsd.org Subject: RE: How to signal a time zone change? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2009 21:14:42 -0000 >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.