Changeset 2784 in kBuild for trunk/src/kash
- Timestamp:
- May 24, 2015 5:29:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shinstance.c
r2781 r2784 928 928 #endif 929 929 930 /* child: update the pid */930 /* child: update the pid and zap the children array */ 931 931 if (!pid) 932 { 932 933 # ifdef _MSC_VER 933 934 psh->pid = _getpid(); … … 935 936 psh->pid = getpid(); 936 937 # endif 938 psh->num_children = 0; 939 } 937 940 938 941 TRACE2((psh, "sh_fork -> %d [%d]\n", pid, errno)); … … 980 983 else if (psh->num_children <= MAXIMUM_WAIT_OBJECTS) 981 984 { 982 HANDLE ahChildren[ 64];985 HANDLE ahChildren[MAXIMUM_WAIT_OBJECTS]; 983 986 for (i = 0; i < psh->num_children; i++) 984 987 ahChildren[i] = psh->children[i].hChild;
Note:
See TracChangeset
for help on using the changeset viewer.