[hackers] [sbase] Exit with error 125 if the process is killed by a signal || sin

From: <git_AT_suckless.org>
Date: Mon, 06 Jan 2014 19:05:59 +0100

commit ef57a609cae68dae28285d5dab123c259e0a9185
Author: sin <sin_AT_2f30.org>
Date: Mon Jan 6 18:03:34 2014 +0000

    Exit with error 125 if the process is killed by a signal

diff --git a/xargs.c b/xargs.c
index 75e8731..da7754c 100644
--- a/xargs.c
+++ b/xargs.c
_AT_@ -241,4 +241,6 @@ runcmd(void)
                     WEXITSTATUS(status) == 126)
                         exit(WEXITSTATUS(status));
         }
+ if (WIFSIGNALED(status))
+ exit(125);
 }
Received on Mon Jan 06 2014 - 19:05:59 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 06 2014 - 19:12:09 CET