in reply to Exit codes from forking children
I bet the child gets killed by a SIGPIPE (13) in the gzip case.
See system for how to properly interpret $? to also catch such errors (the signal number is in the lower byte which you're just "shifting out" by unconditionally doing $? >> 8).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Exit codes from forking children
by ikegami (Patriarch) on Dec 04, 2009 at 00:05 UTC |