Help for this page

Select Code to Download


  1. or download this
        switch(mode) {
        case P_NOWAIT:    /* asynch + remember result */
        if (w32_num_children >= MAXIMUM_WAIT_OBJECTS) {
    ...
            ret = -1;
            goto RETVAL;
        }
    
  2. or download this
        /* if a child exists, wait for it to die */
        waitcode = WaitForMultipleObjects(w32_num_children,
                          w32_child_handles,
                          FALSE,
                          INFINITE);