projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9305cdd
)
fix by Jie Zhang for exit status and POSIX compliance:
author
Mike Frysinger
<vapier@gentoo.org>
Wed, 14 May 2008 11:51:04 +0000
(11:51 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Wed, 14 May 2008 11:51:04 +0000
(11:51 -0000)
http://www.opengroup.org/onlinepubs/
009695399
/utilities/xcu_chap02.html
The exit status of a command that terminated because it received a signal shall be reported as greater than 128.
shell/msh.c
patch
|
blob
|
history
diff --git
a/shell/msh.c
b/shell/msh.c
index a96e799e2a66ee9a16dab3b98ef8191fccc8b5f1..aa6fb1d2613acdce30237ae398b6a51bc2b233d3 100644
(file)
--- a/
shell/msh.c
+++ b/
shell/msh.c
@@
-3007,7
+3007,7
@@
static int waitfor(int lastpid, int canintr)
prs(" - core dumped");
if (rv >= ARRAY_SIZE(signame) || signame[rv])
prs("\n");
- rv
= -1
;
+ rv
|= 0x80
;
} else
rv = WAITVAL(s);
}