Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^5: using Net::OpenSSH in a MCE worker thread

by Andy16 (Acolyte)
on Jun 28, 2013 at 12:26 UTC ( #1041240=note: print w/ replies, xml ) Need Help??

in reply to Re^4: using Net::OpenSSH in a MCE worker thread
in thread using Net::OpenSSH in a MCE worker thread

Hi salva - thats fast! :)

tried, but with no success... Problem, MCE worker threads have no strout/stderr to use...

I don't get the magic of that code, but if I preload IO::Pty it works.
Your change was for a load having a version - and IP::Pty is loaded without version specified.

to me it still points towards using signals while running in MCE....

hope it helps

Comment on Re^5: using Net::OpenSSH in a MCE worker thread
Replies are listed 'Best First'.
Re^6: using Net::OpenSSH in a MCE worker thread
by salva (Abbot) on Jun 28, 2013 at 12:31 UTC
    Try tracing the program with strace (or your favorite OS equivalent) and check the last things it does before crashing (or post here the output).
      made it to stderr (my fault supressing it - sorry....)
      error msg is:
      unable to load Perl module IO::Pty

      not that surprising - but still funny that I can preload it.
        right, but inspecting the strace output would allow us to see why it is failing to load when called from MCE.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041240]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2016-02-05 23:04 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (209 votes), past polls