about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-02-18 00:33:10 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-02-18 00:33:10 +0000
commit9a3e10869c7581543aa7fc37b44e25cbba895f4b (patch)
treebdea23ca0fce6f90acdc07d11871527f686cc270
parent2bc4067357640f143fc417fb92fbf89e70047a8f (diff)
downloadskalibs-9a3e10869c7581543aa7fc37b44e25cbba895f4b.tar.gz
skalibs-9a3e10869c7581543aa7fc37b44e25cbba895f4b.tar.xz
skalibs-9a3e10869c7581543aa7fc37b44e25cbba895f4b.zip
Modify wait_status to return 256 when WIFSIGNALED
-rw-r--r--doc/index.html2
-rw-r--r--doc/upgrade.html6
-rw-r--r--package/info2
-rw-r--r--src/include/skalibs/djbunix.h2
4 files changed, 9 insertions, 3 deletions
diff --git a/doc/index.html b/doc/index.html
index 117d9f0..f17f970 100644
--- 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
index 8f819c7..f30a856 100644
--- 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
index c9735fd..f4cf2b8 100644
--- 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
index 387e05a..765fb3b 100644
--- 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) ;