in reply to exec on Windows "halfway forks"

Out of curiousity, do you see the same effect if you take the body of the INIT out of the INIT? That is, remove the "INIT {" line and it matching close brace.

Replies are listed 'Best First'.
Re^2: exec on Windows "halfway forks" (cygwin)
by tye (Sage) on Jun 14, 2010 at 17:42 UTC

    Yes, of course one would. Because exec(3) isn't implemented on Windows so Perl emulates it by spawning a subprocess and then having the parent process exit. That is the best that can be done without something much more heavy-handed like cygwin.

    So the choices on Windows are: 1) Use system then exit and have an extra process hanging around, 2) Use exec and realize that the calling process won't be able to wait because the middle process will quickly exit, 3) Use cygwin Perl.

    - tye        

Re^2: exec on Windows "halfway forks"
by rovf (Priest) on Jun 15, 2010 at 11:22 UTC
    do you see the same effect if you take the body of the INIT out of the INIT?
    Yes.

    -- 
    Ronald Fischer <ynnor@mm.st>