On 09/28/2011 01:12 PM, Stefano Lattarini wrote:
Hi Eric, thanks for the links.
On Wednesday 28 September 2011, Eric Blake wrote:
On 09/28/2011 08:34 AM, Stefano Lattarini wrote:
Some Korn shells, when a child process die due to signal number
n, can leave in $? an exit status of 256+n instead of the more
standard 128+n. Apparently, both behaviours are allowed by
POSIX,
Indeed. Here's some further reading:
http://austingroupbugs.net/view.php?id=51
Very useful: I've added a reference to it in the comments of
tap-driver.sh; see attached patch.
Looks reasonable to me.
http://austingroupbugs.net/view.php?id=347
This does not seem relevant for the issue under discussion to me. Maybe
wrong link? Or am I missing something?
That link is not directly related to $? values, but _is_ related to
which signals a shell may and must handle, and the required difference
in signal handling between interactive and script usage of shells.
--
Eric Blake ebl...@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org