1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-11 03:54:59 -05:00

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>
This commit is contained in:
Dave Reisner 2011-06-30 10:49:55 -04:00 committed by Dan McGee
parent 35ffe6af2d
commit 98a2fc8deb

View File

@ -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; }