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:
parent
35ffe6af2d
commit
98a2fc8deb
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user