Subject: Re: CVS commit: src/sys
To: None <tech-kern@NetBSD.org, tech-userlevel@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 06/25/2007 00:27:22
>> getppid actually does not qualify, since the parent can die, and the
>> ppid thus change to 1, without libc having a chance to notice.
> Well, this can be handled with an appropriate kevent and some kernel
> magic -- though I would not necessarily advocate that for NetBSD's
Can kevents generate signal/AIO-style callbacks? If not, then all
you've done in that case is traded a cheap syscall (getppid) for a
substantially more expensive syscall (kevent)...or was the "kernel
magic" you refer to something that would cure that?
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML email@example.com
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B