VirtualBox

Changeset 3156 in kBuild for trunk/src/kmk/kmkbuiltin/redirect.c


Ignore:
Timestamp:
Mar 18, 2018 8:10:03 PM (7 years ago)
Author:
bird
Message:

kmk/win: Reworking child process handling. This effort will hopefully handle processor groups better and allow executing internal function off the main thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/redirect.c

    r3145 r3156  
    7070#include "kmkbuiltin.h"
    7171#ifdef KMK
     72# include "job.h"
     73# include "variable.h"
    7274# ifdef KBUILD_OS_WINDOWS
    73 #  include "sub_proc.h"
     75#  ifndef CONFIG_NEW_WIN_CHILDREN
     76#   include "sub_proc.h"
     77#  else
     78#   include "../w32/winchildren.h"
     79#  endif
    7480#  include "pathstuff.h"
    7581# endif
    76 # include "job.h"
    77 # include "variable.h"
    7882#endif
    7983
     
    888892                if ((intptr_t)hProcess != -1)
    889893                {
     894# ifndef CONFIG_NEW_WIN_CHILDREN
    890895                    if (process_kmk_register_redirect(hProcess, pPidSpawned) == 0)
     896# else
     897                    if (MkWinChildCreateRedirect((intptr_t)hProcess, pPidSpawned) == 0)
     898# endif
    891899                    {
    892900                        if (cVerbosity > 0)
     
    896904                    {
    897905                        DWORD dwTmp;
     906# ifndef CONFIG_NEW_WIN_CHILDREN
    898907                        warn("sub_proc is out of slots, waiting for child...");
     908# else
     909                        warn("MkWinChildCreateRedirect failed...");
     910# endif
    899911                        dwTmp = WaitForSingleObject(hProcess, INFINITE);
    900912                        if (dwTmp != WAIT_OBJECT_0)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette