?? wait.3
字號:
.TH wait 3.SH NAMEwait \- check child process status.SH SYNTAX.B #include <wait.h>int \fBwait_nohang\fP(&\fIwstat\fR);.brint \fBwait_stop\fP(&\fIwstat\fR);.brint \fBwait_stopnohang\fP(&\fIwstat\fR);.brint \fBwait_pid\fP(&\fIwstat\fR,\fIpid\fR);int \fBwait_exitcode\fP(\fIwstat\fR);.brint \fBwait_crashed\fP(\fIwstat\fR);.brint \fBwait_stopped\fP(\fIwstat\fR);.brint \fBwait_stopsig\fP(\fIwstat\fR);int \fIpid\fR;.brint \fIwstat\fR;.SH DESCRIPTION.B wait_nohanglooks for zombies (child processes that have exited).If it sees a zombie,it eliminates the zombie,puts the zombie's exit status into.IR wstat ,and returns the zombie's process ID.If there are several zombies,.B wait_nohangpicks one.If there are children but no zombies,.B wait_nohangreturns 0.If there are no children,.B wait_nohangreturns -1,setting.B errnoappropriately..B wait_stopnohangis similar to.BR wait_nohang ,but it also looks for children that have stopped..B wait_stopis similar to.BR wait_stopnohang ,but if there are children it will pause waiting for one of themto stop or exit..B wait_pidwaits for child process.I pidto exit.It eliminates any zombie that shows up in the meantime,discarding the exit status..B wait_stopand.B wait_pidretry upon.BR error_intr ..SH "STATUS PARSING"If the child stopped,.B wait_stoppedis nonzero;.B wait_stopsigis the signal that caused the child to stop.If the child exited by crashing,.B wait_stoppedis zero;.B wait_crashedis nonzero.If the child exited normally,.B wait_stoppedis zero;.B wait_crashedis zero;and.B wait_exitcodeis the child's exit code..SH "SEE ALSO"wait(2),error(3)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -