Make the FIONBIO ioctl actually work. (#441)
The fcntl needs the original `sockfd`, not the remapped one.
This commit is contained in:
parent
8566366b02
commit
6bca5af849
@ -11,9 +11,9 @@ int ioctl(int sockfd, int request, ...)
|
||||
int *value;
|
||||
va_list ap;
|
||||
|
||||
sockfd = soc_get_fd(sockfd);
|
||||
if(sockfd < 0) {
|
||||
errno = -sockfd;
|
||||
ret = soc_get_fd(sockfd);
|
||||
if(ret < 0) {
|
||||
errno = -ret;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user