gav^ has asked for the wisdom of the Perl Monks concerning the following question:

I've used Parallel::ForkManager on unix a couple of times and it's fantastic, takes all the hassle out of dealing with forking yourself, however I'd like to get it working on win32.

When I try and use it, it causes perl to hang with the error "Bizarre SvTYPE 28 at C:/Perl/site/lib/Parallel/ForkManager.pm line 274.". That line in the code is my $pid=fork();.

I thought fork now worked on win32? I poked about a bit in ForkManager.pm and spotted some comments talking about win32. I couldn't seem to find anything on perlmonks/google that helped.

I'm using ActiveState's 5.6.1 build 629 if that helps.

Thanks a lot.
Gavin.

Replies are listed 'Best First'.
(tye)Re: fork on win32 (with Parallel::ForkManager)
by tye (Sage) on Dec 21, 2001 at 03:20 UTC

    How did you not find, for example, (tye)Re: Win32 and Bizarre SvTYPE error? (:

    Perl's fork emulation under Win32 is an interesting idea that I've never seen work except for trivial cases and I've seen it fail for other trivial cases. So I don't find it useful in the slightest. Perhaps it will be better in Perl 5.8?

            - tye (but my friends call me "Tye")
      I did see it but the comments in the module suggested that it *should* work. Oh well.

      I'm going to go see if I can beat Win32::Process until I get something working.

      Thanks tye