Changeset 1057 for trunk/rtorrent/src/rpc/exec_file.cc
- Timestamp:
- 05/01/08 13:14:43 (4 years ago)
- Files:
-
- 1 modified
-
trunk/rtorrent/src/rpc/exec_file.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/rtorrent/src/rpc/exec_file.cc
r1000 r1057 39 39 #include <string> 40 40 #include <unistd.h> 41 #include <rak/error_number.h> 41 42 #include <rak/path.h> 42 43 #include <sys/types.h> … … 91 92 } else { 92 93 int status; 94 int wpid = waitpid(childPid, &status, 0); 93 95 94 if (waitpid(childPid, &status, 0) != childPid) 96 while (wpid == -1 && rak::error_number::current().value() == rak::error_number::e_intr) 97 wpid = waitpid(childPid, &status, 0); 98 99 if (wpid != childPid) 95 100 throw torrent::internal_error("ExecFile::execute(...) waitpid failed."); 96 101
