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 | |
parent | 7c6ca159eb3cb6e36cbdfd613547d3b0b99e7684 (diff) | |
download | skalibs-7d0199963a2ec019270ee187f8c9cb8adb25dac1.tar.gz skalibs-7d0199963a2ec019270ee187f8c9cb8adb25dac1.tar.xz skalibs-7d0199963a2ec019270ee187f8c9cb8adb25dac1.zip |
Add waitn_posix() and waitn_reap_posix()
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/libstddjb/djbunix.html | 13 | ||||
-rw-r--r-- | doc/upgrade.html | 2 |
2 files changed, 15 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>. diff --git a/doc/upgrade.html b/doc/upgrade.html index 9e6c272..4dff35b 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -25,6 +25,8 @@ as well as <tt>random_char()</tt>. </li> <li> random functions now have an <tt>early</tt> version, to use when randomness is required before the generator can be seeded (i.e. in programs running in the very early boot). </li> + <li> New <a href="libstddjb/djbunix.html">djbunix</a> functions: +<tt>waitn_posix()</tt>, <tt>waitn_reap_posix()</tt> </li> </ul> <h2> in 2.11.2.0 </h2> |