commit 9a3e10869c7581543aa7fc37b44e25cbba895f4b
parent 2bc4067357640f143fc417fb92fbf89e70047a8f
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Wed, 18 Feb 2015 00:33:10 +0000
Modify wait_status to return 256 when WIFSIGNALED
Diffstat:
4 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/doc/index.html b/doc/index.html
@@ -59,7 +59,7 @@ with a standard C development environment </li>
<h3> Download </h3>
<ul>
- <li> The current released version of skalibs is <a href="skalibs-2.3.0.0.tar.gz">2.3.0.0</a>. </li>
+ <li> The current released version of skalibs is <a href="skalibs-2.3.0.1.tar.gz">2.3.0.1</a>. </li>
<li> Alternatively, you can checkout a copy of the skalibs git repository:
<pre> git clone git://git.skarnet.org/skalibs </pre> </li>
</ul>
diff --git a/doc/upgrade.html b/doc/upgrade.html
@@ -17,6 +17,12 @@
<h1> What has changed in skalibs </h1>
+<h2> in 2.3.0.1 </h2>
+
+<ul>
+ <li> wait_status() now returns 256 (instead of 126) when WIFSIGNALED(). </li>
+</ul>
+
<h2> in 2.3.0.0 </h2>
<ul>
diff --git a/package/info b/package/info
@@ -1,4 +1,4 @@
package=skalibs
-version=2.3.0.0
+version=2.3.0.1
category=prog
package_macro_name=SKALIBS
diff --git a/src/include/skalibs/djbunix.h b/src/include/skalibs/djbunix.h
@@ -83,7 +83,7 @@ extern pid_t waitpid_nointr (pid_t, int *, int) ;
#define wait_nohang(wstat) waitpid_nointr(-1, (wstat), WNOHANG)
extern pid_t wait_pid_nohang (pid_t, int *) ;
extern int wait_pids_nohang (pid_t const *, unsigned int, int *) ;
-#define wait_status(w) (WIFSIGNALED(w) ? 126 : WEXITSTATUS(w))
+#define wait_status(w) (WIFSIGNALED(w) ? 256 : WEXITSTATUS(w))
extern unsigned int wait_reap (void) ;
extern int waitn (pid_t *, unsigned int) ;
extern int waitn_reap (pid_t *, unsigned int) ;