In the parent process, fork returns the PID of the child process, so you can store that in a variable, and then use waitpid to wait for the ...
確定! 回上一頁