What kind of volume do your applications have? Assuming a basic intranet scenario, I would highly recommend just going out and getting a free webserver that works on Windows. You can even run (albeit very inefficiently) Apache with mod_perl in pre-fork mode.

That said, the likely cause of your problem is that Windows doesn't really support the fork command. So it is emulated in Perl using threads. That works OK for very simple stuff. But that emulation breaks down when you start doing complex signal handling. For instance you can't predict which thread will receive a signal, so how can you reliably handle signals differently in child threads and in the controlling thread?

If you want to go down this route I would suggest using a module like Win32::Process to spawn your child processes. That way you have real processes that you can manipulate with the Win32 API.


In reply to Re: Fork Windows by tilly
in thread Fork Windows by bkiahg

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.