Changeset 14156
- Timestamp:
- Aug 5, 2013, 1:07:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/torrent.c
r14148 r14156 18 18 #else 19 19 #include <process.h> 20 #define waitpid(pid, status, options) _cwait (status, pid, WAIT_CHILD)21 20 #endif 22 21 #include <unistd.h> /* stat */ … … 2074 2073 onSigCHLD (int i UNUSED) 2075 2074 { 2076 waitpid (-1, NULL, WNOHANG); 2075 #ifdef WIN32 2076 2077 _cwait (NULL, -1, WAIT_CHILD); 2078 2079 #else 2080 2081 int rc; 2082 do 2083 rc = waitpid (-1, NULL, WNOHANG); 2084 while (rc>0 || (rc==-1 && errno==EINTR)); 2085 2086 #endif 2077 2087 } 2078 2088
Note: See TracChangeset
for help on using the changeset viewer.