mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-03 00:13:42 +00:00
fix setuid issue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user