fix setuid issue

This commit is contained in:
Max Lv
2014-03-29 11:36:13 +08:00
parent c9a0f9b3eb
commit c9c4873347
3 changed files with 80 additions and 70 deletions
+6 -2
View File
@@ -717,8 +717,12 @@ static void* thread_worker(void *p) {
FD_SET(in_fd, &fds);
if (select(in_fd+1, &fds, NULL, NULL, &tv) < 0) {
perror("test");
break;
if (errno == EAGAIN || errno == EINTR) {
continue;
} else {
perror("error on select");
break;
}
}
}