automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [FYI 1/2] {test-protocols} tap/awk: handle exit statuses > 256 ( se


From: Eric Blake
Subject: Re: [FYI 1/2] {test-protocols} tap/awk: handle exit statuses > 256 ( seen on few korn shells)
Date: Wed, 28 Sep 2011 13:17:21 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.22) Gecko/20110906 Fedora/3.1.14-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.14

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   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]