Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: waitpid on Win32 ... wait forever

by syphilis (Archbishop)
on May 08, 2009 at 07:14 UTC ( [id://762764]=note: print w/replies, xml ) Need Help??


in reply to Re: waitpid on Win32 ... wait forever
in thread waitpid on Win32 ... wait forever

The presented code works fine for me

Yep, me too :-)
Seems that the contents of $cmd (which I changed just prior to posting) can have an effect. Try instead with:
my $cmd = 'dir';
Cheers,
Rob

Replies are listed 'Best First'.
Re^3: waitpid on Win32 ... wait forever
by ikegami (Patriarch) on May 08, 2009 at 14:53 UTC
    The dir command works fine for me until I chdir to a larger directory, at which point dir never completes because it blocks writing to the full pipe attached to STDOUT. Just like I predicted.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found