diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-04-15 06:30:46 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-04-15 06:30:46 +0000 |
commit | 7d0199963a2ec019270ee187f8c9cb8adb25dac1 (patch) | |
tree | dfee736b516e1e996364a23059d590542196c85c /doc/libstddjb/djbunix.html | |
parent | 7c6ca159eb3cb6e36cbdfd613547d3b0b99e7684 (diff) | |
download | skalibs-7d0199963a2ec019270ee187f8c9cb8adb25dac1.tar.xz |
Add waitn_posix() and waitn_reap_posix()
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/libstddjb/djbunix.html')
-rw-r--r-- | doc/libstddjb/djbunix.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/libstddjb/djbunix.html b/doc/libstddjb/djbunix.html index 36de54b..d1470b4 100644 --- a/doc/libstddjb/djbunix.html +++ b/doc/libstddjb/djbunix.html @@ -422,6 +422,12 @@ Returns 1 if it succeeds, and 0 (and sets errno) if it fails. The </p> <p> +<code> int waitn_posix (pid_t *pids, unsigned int n, int *wstat) </code> <br /> +Like <tt>waitn</tt>, but stores into <em>*wstat</em> the status +of the last process in the <em>pids</em> array (i.e. <tt>pids[n-1]</tt>). +</p> + +<p> <code> int waitn_reap (pid_t *pids, unsigned int n) </code> <br /> Instantly reaps all zombies whose PIDs are stored in the <em>pids</em> array, of size <em>n</em>. @@ -431,6 +437,13 @@ be unchanged. </p> <p> +<code> int waitn_reap_posix (pid_t *pids, unsigned int n, int *wstat) </code> <br /> +Like <tt>waitn_reap</tt>, but stores into <em>*wstat</em> the status +of the last process in the <em>pids</em> array (i.e. <tt>pids[n-1]</tt>), +if applicable; otherwise <em>*wstat</em> is unchanged. +</p> + +<p> <code> pid_t wait_nohang (int *wstat) </code> <br /> Instantly reaps one zombie, and stores the status information into *<em>wstat</em>. |