svn commit: trunk/busybox/shell
vapier at busybox.net
vapier at busybox.net
Wed May 14 11:51:05 UTC 2008
Author: vapier
Date: 2008-05-14 04:51:04 -0700 (Wed, 14 May 2008)
New Revision: 21979
Log:
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.
Modified:
trunk/busybox/shell/msh.c
Changeset:
Modified: trunk/busybox/shell/msh.c
===================================================================
--- trunk/busybox/shell/msh.c 2008-05-13 14:32:39 UTC (rev 21978)
+++ trunk/busybox/shell/msh.c 2008-05-14 11:51:04 UTC (rev 21979)
@@ -3007,7 +3007,7 @@
prs(" - core dumped");
if (rv >= ARRAY_SIZE(signame) || signame[rv])
prs("\n");
- rv = -1;
+ rv |= 0x80;
} else
rv = WAITVAL(s);
}
More information about the busybox-cvs
mailing list