WNOHANG return immediately if no child has exited.
WUNTRACED also return if a child has stopped (but not traced via
ptrace(2)). Status for traced children which have stopped
is provided even if this option is not specified.
WCONTINUED (since Linux 2.6.10)
also return if a stopped child has been resumed by delivery
of SIGCONT.作者: wangruiyao2010 時間: 2011-05-03 15:41
waitpid(pid,&status,0)我的第三個參數(shù)是0作者: wangruiyao2010 時間: 2011-05-11 10:36
高手去哪了…… 跪求呀……{:3_200:}