1 |
commit: 57cede997c62294d571735bfd85a1aa4345e1712 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 7 18:15:06 2014 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 7 18:15:06 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=57cede99 |
7 |
|
8 |
misc/install-xattr.c/install-xattr.c: re-introduce return after kill |
9 |
|
10 |
In cases where signals are masked, the return is reacheable. See |
11 |
|
12 |
https://bugs.gentoo.org/show_bug.cgi?id=465000#c64 |
13 |
|
14 |
--- |
15 |
misc/install-xattr.c/install-xattr.c | 1 + |
16 |
1 file changed, 1 insertion(+) |
17 |
|
18 |
diff --git a/misc/install-xattr.c/install-xattr.c b/misc/install-xattr.c/install-xattr.c |
19 |
index 0f25520..e27016b 100644 |
20 |
--- a/misc/install-xattr.c/install-xattr.c |
21 |
+++ b/misc/install-xattr.c/install-xattr.c |
22 |
@@ -365,6 +365,7 @@ main(int argc, char* argv[]) |
23 |
if (WIFSIGNALED(status)) { |
24 |
int signum = WTERMSIG(status); |
25 |
kill(getpid(), signum); |
26 |
+ return 128 + signum; |
27 |
} else if (WIFEXITED(status)) |
28 |
return WEXITSTATUS(status); |
29 |
else |