0
有人可以解釋什麼waitpid()調用與WUNTRACED選項用於?我明白,沒有任何標誌的waitpid和pid參數中的-1會在小孩退出時返回。該手冊頁說waitpid與WUNTRACED
If the WUNTRACED option is set, children of the current process
that are stopped due to a SIGTTIN, SIGTTOU, SIGTSTP, or SIGSTOP signal
also have their status reported.
我不明白這可能會用到。謝謝!