Subject: Re: sig*wait() implementation, RFC
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-kern
Date: 02/10/2003 23:27:34
Jason R Thorpe wrote:
> Perhaps the system call should be __sigtimedwait, which takes a non-const
> timespec *, and updates the timeout parameter to indicate how much time is
> left?  Then the sigtimedwait syscall could simply copy the const timespec
> to a non-const, and pass the non-const.

Yep, this might be one option. But kernel doesn't have easy way to know how
long the LWP slept in ltsleep(), does it?

Jaromir
-- 
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.''     -=-