Re: Signal delivery in POE and time warp.

2003-09-02 Thread Peter Chen
On Friday, Aug 29, 2003, at 01:05 US/Eastern, Rocco Caputo wrote: On Thu, Aug 28, 2003 at 05:27:22PM -0400, Dmitri Tikhonov wrote: I was looking at POE::Kernel again to try to figure out this problem, and then I re-visited this thread. It hit me that because of semantic differences between

Re: Signal delivery in POE and time warp.

2003-09-02 Thread Peter Chen
On Friday, Aug 29, 2003, at 14:29 US/Eastern, Dmitri Tikhonov wrote: It also uses alarm semantics rather than delay semantics, which means it's susceptible to time shifts. Assuming different ST_ALARM and ST_DELAY events, you can't make a delay that doesn't succumb to clock drift. I am not

Re: Signal delivery in POE and time warp.

2003-09-02 Thread Dmitri Tikhonov
On Mon, 1 Sep 2003, Peter Chen wrote: Wouldn't it be nice if such monotonic clock source was in ANSI C? What would you say if I wrote an experimental module for monotonic clock (only for Linux for now, based on uptime), and it would be an option to POE::Kernel to either use

Re: Signal delivery in POE and time warp.

2003-09-02 Thread Peter Chen
Dmitri Tikhonov wrote: On Mon, 1 Sep 2003, Peter Chen wrote: wait (or be somewhere on a branch). If you take a look at the postings dated back in April, you will find that such API already exists, it's POSIX::times. There is no need to reinvent the wheel. Yeah, that's what I'd

Re: Signal delivery in POE and time warp.

2003-09-02 Thread Peter Chen
sungo wrote: Peter Chen wrote: Is there any particular advantage of replacing ST_TIME w/ ST_ALARM? ST_TIME uses the old system time based semantic. Isn't what we are trying to do here simply to add a delay based semantic? How about keeping ST_TIME and adding ST_DELAY? so, let me get this

Re: Signal delivery in POE and time warp.

2003-09-02 Thread Rocco Caputo
On Mon, Sep 01, 2003 at 10:01:26PM -0400, Peter Chen wrote: On Friday, Aug 29, 2003, at 01:05 US/Eastern, Rocco Caputo wrote: Sounds good, but also full of problems. It will require a lot of maintenance to support different monotonic timer functions for each operating system. Maybe the

Re: Signal delivery in POE and time warp.

2003-09-02 Thread Peter Chen
On Tuesday, Sep 2, 2003, at 17:28 US/Eastern, Rocco Caputo wrote: I have heard conflicting stories about whether the time shift is significant. Jeff Bisbee posted that systems based on UTC don't see shifts in time() when DST/Standard arrive. Matt Cashner is convinced that NTP prevents the

Re: Signal delivery in POE and time warp.

2003-09-02 Thread Rocco Caputo
On Tue, Sep 02, 2003 at 06:21:44PM -0400, Peter Chen wrote: On Tuesday, Sep 2, 2003, at 17:28 US/Eastern, Rocco Caputo wrote: I have heard conflicting stories about whether the time shift is significant. Jeff Bisbee posted that systems based on UTC don't see shifts in time() when

Re: Signal delivery in POE and time warp.

2003-09-02 Thread sungo
Rocco Caputo wrote: I have heard conflicting stories about whether the time shift is significant. Jeff Bisbee posted that systems based on UTC don't see shifts in time() when DST/Standard arrive. Matt Cashner is convinced that NTP prevents the problem from occurring. the combination of those