mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-25 06:12:40 +02:00
In socket ioctl(), properly call fcntl-F_SETFL with the new flags.
This commit is contained in:
parent
21d27b935e
commit
51293c7fb0
@ -553,7 +553,7 @@ int ioctl(int fd, int request, ...) {
|
|||||||
if(flags == -1)
|
if(flags == -1)
|
||||||
return -1;
|
return -1;
|
||||||
flags = *(int *)data != 0 ? (flags | O_NONBLOCK) : (flags & ~O_NONBLOCK);
|
flags = *(int *)data != 0 ? (flags | O_NONBLOCK) : (flags & ~O_NONBLOCK);
|
||||||
return fcntl(fd, F_SETFL, 0);
|
return fcntl(fd, F_SETFL, flags);
|
||||||
}
|
}
|
||||||
case BIOCSETF:
|
case BIOCSETF:
|
||||||
case BIOCSETWF:
|
case BIOCSETWF:
|
||||||
|
Loading…
Reference in New Issue
Block a user