Ignore:
Timestamp:
Jan 13, 2010, 2:45:49 AM (16 years ago)
Author:
bird
Message:

kash: Fixed some file handle inheritance issues on windows. piping to the native sort.exe works now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shinstance.c

    r2362 r2376  
    899899#if K_OS == K_OS_WINDOWS //&& defined(SH_FORKED_MODE)
    900900    pid = shfork_do_it(psh);
     901    if (pid == 0)
     902        shthread_set_shell(psh);
    901903
    902904#elif defined(SH_FORKED_MODE)
     
    11411143
    11421144        /* File handles. */
     1145        StrtInfo.dwFlags   |= STARTF_USESTDHANDLES;
    11431146        StrtInfo.lpReserved2 = shfile_exec_win(&psh->fdtab, 1 /* prepare */, &StrtInfo.cbReserved2, hndls);
    11441147        StrtInfo.hStdInput  = (HANDLE)hndls[0];
Note: See TracChangeset for help on using the changeset viewer.