[llvm-commits] [llvm] r75665-/llvm/trunk/tools/bugpoint/ToolRunner.cpp

Dan Gohman gohman at apple.com
Wed Jul 15 15:41:53 PDT 2009


On Jul 15, 2009, at 3:31 PM, Daniel Dunbar wrote:


> On Wed, Jul 15, 2009 at 2:58 PM, Dan Gohman<gohman at apple.com> wrote:
>
>> Picking a special exit status is much simpler than printing
>>
>> a value and having bugpoint parse it. And OpenSSH has already
>>
>> picked a number for this purpose (255), so we can expect that
>>
>> reasonable programs will stay out of trouble.
>>
>
> Negative exit codes (as a signed char) are traditionally sent when a
> signal is received, and are the negated signal number. OpenSSH isn't
> "choosing" 255, it is returning -SIGHUP (I think).

The OpenSSH man page (man ssh on most systems these days) says
"ssh exits with the exit status of the remote command or with 255
if an error occurred."

Dan




More information about the llvm-commits mailing list