Changeset 3156 for trunk/src/kmk/read.c


Ignore:
Timestamp:
Mar 18, 2018, 9: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/read.c

    r3145 r3156  
    3333#ifdef WINDOWS32
    3434#include <windows.h>
    35 #include "sub_proc.h"
     35# ifndef _MSC_VER
     36#  ifndef CONFIG_NEW_WIN_CHILDREN
     37#   include "sub_proc.h"
     38#  else
     39#   include "w32/winchildren.h"
     40#  endif
     41# endif
    3642#else  /* !WINDOWS32 */
    3743#ifndef _AMIGA
     
    423429    }
    424430
     431#ifdef _MSC_VER
     432  ENULLLOOP (ebuf.fp, fopen (filename, "rN")); /* N == noinherit */
     433#else
    425434  ENULLLOOP (ebuf.fp, fopen (filename, "r"));
     435#endif
    426436
    427437  /* Save the error code so we print the right message later.  */
     
    454464          const char *included = concat (3, include_directories[i],
    455465                                         "/", filename);
     466#ifdef _MSC_VER
     467          ebuf.fp = fopen (included, "rN"); /* N == noinherit */
     468#else
    456469          ebuf.fp = fopen (included, "r");
     470#endif
    457471          if (ebuf.fp)
    458472            {
     
    496510  /* Set close-on-exec to avoid leaking the makefile to children, such as
    497511     $(shell ...).  */
     512#ifndef _MSC_VER /* not necessary, see fopen calls above. */
    498513#ifdef HAVE_FILENO
    499514  CLOSE_ON_EXEC (fileno (ebuf.fp));
     515#endif
    500516#endif
    501517
Note: See TracChangeset for help on using the changeset viewer.