mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
fix by Jie Zhang for exit status and POSIX compliance:
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.
This commit is contained in:
parent
9305cdddbf
commit
b81f97bbd2
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user