- Timestamp:
- Sep 15, 2020, 11:30:11 PM (5 years ago)
- Location:
- trunk/src/kash
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shinstance.c
r3466 r3467 1544 1544 * @param sts Subshell status structure, NULL if progress. 1545 1545 */ 1546 int sh_add_child(shinstance *psh, shpid pid, void *hChild, s hsubshellstatus *sts)1546 int sh_add_child(shinstance *psh, shpid pid, void *hChild, struct shsubshellstatus *sts) 1547 1547 { 1548 1548 /* get a free table entry. */ … … 1789 1789 { 1790 1790 DWORD dwExitCode = 127; 1791 # ifndef SH_FORKED_MODE1791 # ifndef SH_FORKED_MODE 1792 1792 if (psh->children[i].subshellstatus) 1793 1793 { … … 1801 1801 } 1802 1802 else 1803 # endif1803 # endif 1804 1804 if (GetExitCodeProcess(hChild, &dwExitCode)) 1805 1805 { … … 1814 1814 1815 1815 /* close and remove */ 1816 # ifndef SH_FORKED_MODE 1816 1817 if (psh->children[i].subshellstatus) 1817 1818 { … … 1820 1821 } 1821 1822 else 1823 # endif 1822 1824 { 1823 1825 rc = CloseHandle(psh->children[i].hChild); … … 1829 1831 psh->children[i] = psh->children[psh->num_children]; 1830 1832 psh->children[psh->num_children].hChild = NULL; 1833 # ifndef SH_FORKED_MODE 1831 1834 psh->children[psh->num_children].subshellstatus = NULL; 1835 # endif 1832 1836 } 1833 1837 -
trunk/src/kash/shinstance.h
r3461 r3467 516 516 517 517 /* wait / process */ 518 int sh_add_child(shinstance *psh, shpid pid, void *hChild, s hsubshellstatus *sts);518 int sh_add_child(shinstance *psh, shpid pid, void *hChild, struct shsubshellstatus *sts); 519 519 #ifdef _MSC_VER 520 520 # include <process.h>
Note:
See TracChangeset
for help on using the changeset viewer.