Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Problems with IPC::Open3

by Krambambuli (Curate)
on Nov 01, 2008 at 20:42 UTC ( #720893=note: print w/replies, xml ) Need Help??

in reply to Problems with IPC::Open3

First things first: on my WS the behavior is identical with or without eval {} around the call to _run, and every 10 seconds a new process comes to life.

That seems actually OK, as 'blubb' doesn't produce any output and so the forked child process loops forever in
while (my $line = <$rdr>) { [...] }
Update: In the meantime, the parent process does it's work and forks a new command every 10 seconds.
As almut has shown in his her answer, it's a child that forks a child that forks a child... and each new parent waits indefinitely.

If I replace 'blubb' with 'echo blubb', things seem to work as I suppose you want them to.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://720893]
[marinersk]: choroba LOL wow, y'all are on a roll today.
[Eily]: nice post count marinersk
[Eily]: I also like that this number appears right below "Priest"
[marinersk]: LOL OMG. I may have to create a new account and leave this one here.
[marinersk]: Or maybe I'll just not ever post again. That would make several Monks happy.
[hippo]: :-)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-05-29 15:12 GMT
Find Nodes?
    Voting Booth?