@cks That's what it was in Unix, but I wouldn't bet on Linux, and with the POSIX macros for abstraction it needn't be anyway.
We need something like strerror but for wait status.
@cks That's what it was in Unix, but I wouldn't bet on Linux, and with the POSIX macros for abstraction it needn't be anyway.
We need something like strerror but for wait status.
@oclsc That's what the Linux macros appear to claim (and it matches the other symptoms). But yeah that's non-portable and an assumption and etc, and it makes me wish for a little utility program that takes the raw number and applies the macros and etc to it to decode it for me.
(That'd probably be trivial to write, but I feel like I shouldn't have to.)