sigtimedwait with a zero timeout

2000-09-20 Thread Henrik Nordstrom
-2.4.0-test8 with the patch: timeout = 0 nsec: does not block. ~0.1200 msec on my laptop. timeout = 10 nsec: blocks for 20msec Due to laziness I have not timed 2.4.0-test8 without the patch. -- Henrik Nordstrom --- linux-2.4.0-test7-reiserfs-3.6.14-raw-hno/kernel/signal.c.orig Sat Sep 16 11

[PATCH] sigtimedwait with zero timeout should not block

2000-09-22 Thread Henrik Nordstrom
e fragment: timeout = (timespec_to_jiffies(ts) + (ts.tv_sec || ts.tv_nsec)); Does anyone have any clue on why this +1 is there? I think this should also go away to only read timeout = timespec_to_jiffies(ts); -- Henrik Nordstrom --- linux-2

Re: sigtimedwait with a zero timeout

2000-10-02 Thread Henrik Nordstrom
a timeout is selected, which in the context is nothing. -- Henrik Nordstrom - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

sigtimedwait timeout

2001-03-24 Thread Henrik Nordstrom
now is timeoutsleeping 0 0 1ns2 jiffies 1 jiffies 2 jiffies 2 jiffies 3 jiffies 3 jiffies 4 jiffies ... If the "+1" is taken out then the timeout scale becomes the expected one, starting at 1 jiffie, not 2. -- Henirk Nordstrom Henrik Nordstro

sigtimedwait with a zero timeout

2000-09-20 Thread Henrik Nordstrom
-2.4.0-test8 with the patch: timeout = 0 nsec: does not block. ~0.1200 msec on my laptop. timeout = 10 nsec: blocks for 20msec Due to laziness I have not timed 2.4.0-test8 without the patch. -- Henrik Nordstrom --- linux-2.4.0-test7-reiserfs-3.6.14-raw-hno/kernel/signal.c.orig Sat Sep 16 11

[PATCH] sigtimedwait with zero timeout should not block

2000-09-22 Thread Henrik Nordstrom
e fragment: timeout = (timespec_to_jiffies() + (ts.tv_sec || ts.tv_nsec)); Does anyone have any clue on why this +1 is there? I think this should also go away to only read timeout = timespec_to_jiffies(); -- Henrik Nordstrom --- linux-2.4.0-te

Re: sigtimedwait with a zero timeout

2000-10-02 Thread Henrik Nordstrom
on such applications. Pleae note that the first version of my patch was quite broken. A corrected version was posted a few days later. Thanks for your interest. -- Henrik Nordstrom James Antill wrote: > > Henrik Nordstrom <[EMAIL PROTECTED]> writes: > > > Hi. > > > >

Re: sigtimedwait with a zero timeout

2000-10-02 Thread Henrik Nordstrom
ad: one added comparisation for the codepath when a timeout is selected, which in the context is nothing. -- Henrik Nordstrom - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

sigtimedwait timeout

2001-03-24 Thread Henrik Nordstrom
now is timeoutsleeping 0 0 1ns2 jiffies 1 jiffies 2 jiffies 2 jiffies 3 jiffies 3 jiffies 4 jiffies ... If the "+1" is taken out then the timeout scale becomes the expected one, starting at 1 jiffie, not 2. -- Henirk Nordstrom Henrik Nordstro