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
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ static void handler(int signum)
|
||||||
/* output a newline to be sure we clear any line we may be on */
|
/* output a newline to be sure we clear any line we may be on */
|
||||||
xwrite(out, "\n", 1);
|
xwrite(out, "\n", 1);
|
||||||
}
|
}
|
||||||
cleanup(signum);
|
cleanup(128 + signum);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define check_optarg() if(!optarg) { return 1; }
|
#define check_optarg() if(!optarg) { return 1; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue