in reply to Re: IPC:Open2 question
in thread IPC:Open2 question

Yes, I understod what waitpid does (I think), but why does the process not terminate? That's why I said it terminates ok when just run from the shell... The WNOHANG flag does not change anything.

Replies are listed 'Best First'.
Re^3: IPC:Open2 question
by keszler (Priest) on Jul 14, 2004 at 10:43 UTC
    I did some testing using an ancient DOS port of "od" as my program.exe. On a win98 box running perl 5.8.3, closing WRITEME immediately after printing to WRITEME fixes the problem.

    On a win2k box with perl 5.8.4, running the "fixed" program locks up until "od" is manually killed. However, the problem occurs not at the waitpid command, but at the $output = <README>; command.

    Try using "perl -d:ptkdb perlprog inputfile" (assumes you have Devel::Ptkdb installed) and step through the program.