Changeset 1166 for trunk/src/kmk
- Timestamp:
- Sep 30, 2007, 9:42:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/w32/subproc/sub_proc.c
r1165 r1166 737 737 738 738 while (!stdin_eof || !stdout_eof || !stderr_eof || !child_dead) { 739 long tick;740 739 wait_count = 0; 741 740 if (!stdin_eof) { … … 752 751 } 753 752 754 tick = GetTickCount();755 753 wait_return = WaitForMultipleObjects(wait_count, wait_list, 756 754 FALSE, /* don't wait for all: one ready will do */ 757 755 child_dead? 1000 :INFINITE); /* after the child dies, subthreads have 758 756 one second to collect all remaining output */ 759 printf("waitformultipleobjects: %d ms rc=%d\n", GetTickCount() - tick, wait_return); 760 761 if (wait_return == WAIT_FAILED) { 757 758 if (wait_return == WAIT_FAILED) { 762 759 /* map_windows32_error_to_string(GetLastError());*/ 763 760 pproc->last_err = GetLastError();
Note:
See TracChangeset
for help on using the changeset viewer.