Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: spawning windows children (revisted)

by BrowserUk (Patriarch)
on Jun 18, 2007 at 13:58 UTC ( [id://621792]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        ## From win32.c
        if (mode == P_NOWAIT) {
    ...
        w32_child_pids[w32_num_children] = (DWORD)ret;
        ++w32_num_children;
        }
    
  2. or download this
        case P_NOWAIT:  /* asynch + remember result */
        if (w32_num_children >= MAXIMUM_WAIT_OBJECTS) {
    ...
            ret = -1;
            goto RETVAL;
        }
    
  3. or download this
    C:\test>perl -le "for (1..100) {Win32::Spawn( $ENV{ComSpec},'/c echo>n
    +ull', $pid );print qq[$_\tpid:$pid\t],$?==-1 ? $! : 'OK' };"
    1       pid:5492        OK
    ...
    98      pid:4780        OK
    99      pid:244 OK
    100     pid:4800        OK
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://621792]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-29 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found