in reply to odd interaction of Net::SSH::Expect and open

Not a complete explanation... but my suspicion is that it has to do with Net::SSH::Expect globally setting $SIG{CHLD}. At least I do get the same error when replacing the use Net::SSH::Expect; in your code with

BEGIN { package Net::SSH::Expect; use POSIX qw(:signal_h WNOHANG); $SIG{CHLD} = \&reapChild; sub reapChild { do {} while waitpid(-1,WNOHANG) > 0; } }

(which is extracted as is from Net::SSH::Expect)

When I localize the handler

local $SIG{CHLD} = \&reapChild;

things do work for me... (i.e. there's no interaction any longer).

Replies are listed 'Best First'.
Re^2: odd interaction of Net::SSH::Expect and open
by danmcb (Monk) on Oct 17, 2007 at 11:14 UTC

    Thanks for the replies, and the confirmation. I did wonder a bit if I was dreaming when I found this one. I guess it is pretty clear this is a N:S:E bug, so I reported it at http://rt.cpan.org/Public/Bug/Display.html?id=30054 .

      I fixed this today in version 1.07. The new package must be available in some hours. bnegrao