in reply to Re: $? is -1???
in thread $? is -1???

Yeah, I read that, but the sub I posted is the SIGCHLD handler, so it doesn't seem that that applies.