Honourable monks of Perlish persuasion,

In response to detached process in windows I got what I thought was the perfect, simple solution to spawning detached children, suggested by BrowserUK. Unfortunately now I'm finding when the parent runs for a while it starts failing with Resource temporarily unavailable

Here is a simple demonstration (Windows 2000 'Pro', Perl 5.8.8 +50 patches, Active State)

C:\> perl -le "for (1..100) {system 1,'echo>null';print \"$_\t\",$?==-1 ? $! : 'OK' };" 1 OK 2 OK . . . 63 OK 64 OK 65 Resource temporarily unavailable 66 Resource temporarily unavailable . . . 99 Resource temporarily unavailable 100 Resource temporarily unavailable

Is this a known windows 'feature' and can it be fixed easily or am I really best just accepting a bigger implementation variance between my Linux/Windows code and throwing in some if $^O eq 'MSWin32' require Win32::Process; as suggested in the same thread by bart

Thanks again for all your help,
R.

Pereant, qui ante nos nostra dixerunt!

In reply to spawning windows children (revisted) by Random_Walk

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.