From 98a2fc8deba6be37729c26cf68e9927f6466c95e Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 30 Jun 2011 10:49:55 -0400 Subject: pacman: return with 128+signum on signaled exit This is a convention that is widely followed in *nix and posix-ish environments. We should follow it, too. Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- src/pacman/pacman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index cd59c8d4..ce2ca2d5 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -316,7 +316,7 @@ static void handler(int signum) /* output a newline to be sure we clear any line we may be on */ xwrite(out, "\n", 1); } - cleanup(signum); + cleanup(128 + signum); } #define check_optarg() if(!optarg) { return 1; } -- cgit v1.2.3-24-g4f1b