in reply to Win32 fork using open3

Greetings,

I would place my bets on the fork() emulation that,as can be found elsewhere on PM, does not properly shine on Win32.
AFAIK, open3 does implicitly fork...
Cheers,
alf


You can't have everything: where would you put it?

Replies are listed 'Best First'.
Re: Re: Win32 fork using open3
by NaSe77 (Monk) on Jun 05, 2002 at 13:36 UTC
    i can see that there is a need to to implicitly fork() to implement open3 ... and i also can see it in the code of Open3.pm ... but i still cant see why this doesnt work on win32 ... since i have forked before on win32 using perl and it worked .

    is there another way to do something like open3 not using the acual command?

    ----
    NaSe
    :x

Re: Re: Win32 fork using open3
by belg4mit (Prior) on Jun 05, 2002 at 19:00 UTC
    tye is correct. In fact anything named open (IPC::Open3, IPC::Open2 {A wrapper for Open3}, open) does an *implicit* fork. Which in Win32's case are not real faked up forks, and work quite well. Afterall you were always able to open pipes in Win32, even when fork hadn't been faked.

    --
    perl -pew "s/\b;([mnst])/'$1/g"