Changeset 321 for trunk/src/sh_kern.c
- Timestamp:
- Mar 17, 2011, 10:07:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_kern.c
r303 r321 746 746 int errcode; 747 747 748 #ifdef WCONTINUED 749 int wflags = WNOHANG|WUNTRACED|WCONTINUED; 750 #else 751 int wflags = WNOHANG|WUNTRACED; 752 #endif 753 748 754 /* Close reading side of pipe, and wait some milliseconds 749 755 */ … … 820 826 821 827 if (status < 0) 822 res = waitpid(mpid, NULL, WNOHANG|WUNTRACED);828 res = waitpid(mpid, NULL, wflags); 823 829 else 824 830 { 825 res = waitpid(mpid, &status, WNOHANG|WUNTRACED);831 res = waitpid(mpid, &status, wflags); 826 832 if (res == 0 && 0 != WIFEXITED(status)) 827 833 status = WEXITSTATUS(status);
Note:
See TracChangeset
for help on using the changeset viewer.