Ignore:
Timestamp:
Sep 11, 2020, 3:22:14 PM (5 years ago)
Author:
bird
Message:

kash: Avoid handle inheritance on windows when possible, allowing concurrent CreateProcess calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shfile.h

    r3444 r3447  
    134134void shfile_uninit(shfdtab *);
    135135void shfile_fork_win(shfdtab *pfdtab, int set, intptr_t *hndls);
    136 void *shfile_exec_win(shfdtab *pfdtab, int prepare, unsigned short *sizep, intptr_t *hndls);
     136typedef struct shfdexecwin
     137{
     138    int inherithandles;
     139    int startsuspended;
     140    shmtxtmp tmp;
     141    int replacehandles[3];
     142    intptr_t handles[3];
     143    void *strtinfo;
     144} shfdexecwin;
     145int shfile_exec_win(shfdtab *pfdtab, int prepare, shfdexecwin *info);
    137146int shfile_exec_unix(shfdtab *pfdtab);
    138147
Note: See TracChangeset for help on using the changeset viewer.