in reply to system() status weirdness
Doing this will give you your statuses back:sub reapChild { do {} while waitpid(-1,WNOHANG) > 0; }
I could be wrong, but I doubt the reapChild handler is absolutely necessary, so you're probably safe just use default handler even when you make Net::SSH::Expect calls.use Net::SSH::Expect; ... $SIG{CHLD} = 'DEFAULT'; ... system(...);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system() status weirdness
by monk2b (Pilgrim) on Mar 28, 2008 at 20:13 UTC |