Re: Proper behaviour for wait()?
From: Valentin Nechayev (netch_at_iv.nn.kiev.ua)
Date: 05/31/03
- Previous message: Valentin Nechayev: "Re: kqueue/kevent support in scsi device drivers"
- In reply to: Paul Herman: "Proper behaviour for wait()?"
- Next in thread: Mikko Työläjärvi: "Re: Proper behaviour for wait()?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 31 May 2003 10:43:49 +0300 To: Paul Herman <pherman@frenchfries.net>
Fri, May 30, 2003 at 22:00:18, pherman (Paul Herman) wrote about "Proper behaviour for wait()?":
PH> anyone know what the "proper" behavior for wait() is when SIGCHLD
PH> is ignored? Is it simply undefined? Don't see anything mentioned
PH> in the wait(2) manpage one way or tother, and other OSes don't seem
PH> to agree much.
Citing SUSv2:
SA_NOCLDWAIT
If set, and sig equals SIGCHLD, child processes of the calling
processes will not be transformed into zombie processes when
they terminate. If the calling process subsequently waits for
its children, and the process has no unwaited for children that
were transformed into zombie processes, it will block until all
of its children terminate, and wait(), wait3(), waitid() and
waitpid() will fail and set errno to [ECHILD]. Otherwise,
terminating child processes will be transformed into zombie
processes, unless SIGCHLD is set to SIG_IGN.
The same for SUSv3.
-netch-
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Valentin Nechayev: "Re: kqueue/kevent support in scsi device drivers"
- In reply to: Paul Herman: "Proper behaviour for wait()?"
- Next in thread: Mikko Työläjärvi: "Re: Proper behaviour for wait()?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|