pid_t waitpid (pid_t pid, int *status, int options);
相較於
wait()
,
waitpid()
系統呼叫是一個功能更強大的版本。
waitpid()
所提供的額外
資訊,讓你得以進行微調(fine-tuning)。
pid
參數用於指定所要等待的是哪個行程或哪些行程。它的值可分成四大部分: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.