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.