If you service the pipes, the process will terminate:
use warnings; use strict; use Symbol qw(gensym); use IPC::Open3; my $out = gensym(); my $err = gensym(); my $cmd = 'dir'; my $pid = open3(undef, $out, $err, $cmd); 1 while <$out>; 1 while <$err>; waitpid $pid, 0;
In reply to Re: waitpid on Win32 ... wait forever
by BrowserUk
in thread waitpid on Win32 ... wait forever
by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |