Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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
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).
      hi
      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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-12-21 18:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls