in reply to Re: return value from system call, exit status, shift right 8, bitwise and, $?
in thread return value from system call, exit status, shift right 8, bitwise and, $?

and the low 8 are the signal id. Is that correct?
No, the low 7 bits indicate the signal that ended the process. Bit 7 indicates whether a core dump was saved.

By my math, the 8th bit signals the core dump. I assume that's a typo.

  • Comment on Re^2: return value from system call, exit status, shift right 8, bitwise and, $?

Replies are listed 'Best First'.
Re^3: return value from system call, exit status, shift right 8, bitwise and, $?
by ikegami (Patriarch) on Feb 11, 2010 at 15:55 UTC
    No typo. The 8th bit is bit 7. They're numbered from 0