Subject: Re: wait(2) suggestion
To: None <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 12/27/2004 05:32:21
>> For my purposes I never want to change any process's state; I just
>> want the call to block until something is available that a similar
>> wait, without the flag bit, would return.
> Can't you use kqueue?

Only for exiting processes, using NOTE_EXIT (though it's not clear from
the manpage whether that refers to just exit(2)int processes or all
process deaths, regardless of reason).  I don't see any way to have
kqueue tell me about children stopping (or about processes dying on
signals, if NOTE_EXIT doesn't cover that).

It also requires asking for a NOTE_EXIT on each child individually,
which is somewhat ugly.

I also have some backward-compatability issues; it's a lot easier to
retrofit WNOREAP into an old kernel than it is to backport kqueue.
(This is not necessarily a reason for *NetBSD* to care, but it's a
reason *I* care.)

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B