Changeset 3466 for trunk/src/kash/shinstance.c
- Timestamp:
- Sep 15, 2020, 11:28:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shinstance.c
r3464 r3466 2091 2091 { 2092 2092 char errmsg[512]; 2093 rc = nt_child_inject_standard_handles(ProcInfo.hProcess, fdinfo.replacehandles, (HANDLE*)&fdinfo.handles[0], 2094 errmsg, sizeof(errmsg)); 2093 if (!fdinfo.inherithandles) 2094 rc = nt_child_inject_standard_handles(ProcInfo.hProcess, fdinfo.replacehandles, 2095 (HANDLE *)&fdinfo.handles[0], errmsg, sizeof(errmsg)); 2096 else 2097 rc = 0; 2095 2098 if (!rc) 2096 2099 { 2100 # ifdef KASH_ASYNC_CLOSE_HANDLE 2101 shfile_async_close_sync(); 2102 # endif 2097 2103 rc = ResumeThread(ProcInfo.hThread); 2098 2104 if (!rc) … … 2121 2127 if (GetExitCodeProcess(ProcInfo.hProcess, &dwExitCode)) 2122 2128 { 2123 # ifndef SH_FORKED_MODE2129 # ifndef SH_FORKED_MODE 2124 2130 shsubshellstatus_signal_and_release(psh, (int)dwExitCode); 2125 # endif2131 # endif 2126 2132 CloseHandle(ProcInfo.hProcess); 2127 2133 ProcInfo.hProcess = INVALID_HANDLE_VALUE;
Note:
See TracChangeset
for help on using the changeset viewer.