Well, you're right of course. But when I used the term "forking", I refered to the general idea, not a particular implementation on a particular system.

Since you quoted the Camel Book (3rd edition), it then says "...The fork function is unlikely to be implemented efficiently, or perhaps at all, on systems that don't resemble Unix. For example, Perl 5.6 emulates a proper form even on Microsoft systems... ". And, in fact, fork does work on my Windows. I tested it, it works. My question was related to using fork from a CGI program. My problem seems to be that the web server does not output the web page until all shared filehandles are closed or something alone these lines - if I knew exactly what's going and how to fix it I wouldn't be asking that question.

Win32::Job is *almost* the same (in its functionality) as Win32::Process. As I have mentioned in my post, I would like the spawned process to have access to the shared information, so that it can just simply save it to file. If I used Win32::Process or Win32::Job, it seems to me that I would have to use a pipe or at least command line arguments to transfer the parameters from the CGI program to the spawned process.


In reply to Re: Re: Forking in a CGI program on Windows systems by relax99
in thread Forking in a CGI program on Windows systems by relax99

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.