Subject: Re: sig*wait() implementation, RFC
To: Jason R Thorpe <firstname.lastname@example.org>
From: Jaromir Dolecek <email@example.com>
Date: 02/13/2003 16:38:02
Jason R Thorpe wrote:
> On Mon, Feb 10, 2003 at 11:27:34PM +0100, Jaromir Dolecek wrote:
> > Yep, this might be one option. But kernel doesn't have easy way to know how
> > long the LWP slept in ltsleep(), does it?
> You can do subtraction from mono_time after the tsleep returns, yes?
Yes, I can :)
Besides the wakeup case, this would actually help also the case
when the call is interrupted by signal. If we can update the userland
timeout structure, it would be possible to let the syscall restart
properly instead of forcing EINTR.
I'll do this.
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow. Do not let this distract you.'' -=-