[Linux manuál]
Návod, kniha: POSIX Programmer's Manual
The following sections are informative.
sys/wait.h: prohlášení na čekání
Originální popis anglicky: sys/wait.h - declarations for waitingNávod, kniha: POSIX Programmer's Manual
STRUČNĚ
#include <sys/wait.h>POPIS / INSTRUKCE
The <sys/wait.h> header shall define the following symbolic constants for use with waitpid():- WNOHANG
- Do not hang if no status is available; return immediately.
- WUNTRACED
- Report status of stopped child process.
- WEXITSTATUS
- Return exit status.
- WIFCONTINUED
- True if child has been continued.
- WIFEXITED
- True if child exited normally.
- WIFSIGNALED
- True if child exited due to uncaught signal.
- WIFSTOPPED
- True if child is currently stopped.
- WSTOPSIG
- Return signal number that caused process to stop.
- WTERMSIG
- Return signal number that caused process to terminate.
- WEXITED
- Wait for processes that have exited.
- WSTOPPED
- Status is returned for any child that has stopped upon receipt of a signal.
- WCONTINUED
- Status is returned for any child that was stopped and has been continued.
- WNOHANG
- Return immediately if there are no children to wait for.
- WNOWAIT
- Keep the process whose status is returned in infop
in a waitable state.
pid_t wait(int *); int waitid(idtype_t, id_t, siginfo_t *, int); pid_t waitpid(pid_t, int *, int);
APPLICATION USAGE
None.RATIONALE
None.FUTURE DIRECTIONS
None.SOUVISEJÍCÍ
<signal.h> , <sys/resource.h> , <sys/types.h> , the System Interfaces volume of IEEE Std 1003.1-2001, wait(), waitid()COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .| 2003 | IEEE/The Open Group |