Re: [Q] what to do when waitpid() returns ECHILD under signal(SIGCHLD, SIG_IGN)?
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jun 20, 2006, 00:36 UTC
- Message-ID
- <7vfyi07jf2.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0606191654590.5498@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
> Whether we want to do that in the main() routine or when we actually do > the fork() or whatever is a different issue.
I do not offhand think of a place where we do fork() but not waitpid(), and it is very tempting to cheat and do that in the main(), since I do not see a downside to it.