[Qeustion][Maybe BUG?] simaltaneous wait and SIGCHLD handling

2007-02-18 Thread KAMEZAWA Hiroyuki
Hi, >From SUSv3, I expected SIGCHLD from dead processes (already reaped by wait(2)) should be cleared. But it seems that such situation is not handled in Linux. Here is a test program. set sigchld handler and call waitpid() in main(). == #include #include #include #include int

[Qeustion][Maybe BUG?] simaltaneous wait and SIGCHLD handling

2007-02-18 Thread KAMEZAWA Hiroyuki
Hi, From SUSv3, I expected SIGCHLD from dead processes (already reaped by wait(2)) should be cleared. But it seems that such situation is not handled in Linux. Here is a test program. set sigchld handler and call waitpid() in main(). == #include stdio.h #include sys/types.h #include sys/wait.h