summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-06-30 10:49:55 -0400
committerDan McGee <dan@archlinux.org>2011-06-30 12:43:57 -0500
commit98a2fc8deba6be37729c26cf68e9927f6466c95e (patch)
tree1d1fa293dd48585f0f2d992438bd2962165ca19a /src
parent35ffe6af2d8d38849a7711a4c6add3d14490816c (diff)
downloadpacman-98a2fc8deba6be37729c26cf68e9927f6466c95e.tar.xz
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 <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c2
1 files changed, 1 insertions, 1 deletions
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; }