Skip to content

Commit

Permalink
fix backwards logic in ioctl
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Dice <[email protected]>
  • Loading branch information
dicej committed Dec 16, 2023
1 parent 2a61396 commit b46fcaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc-bottom-half/cloudlibc/src/libc/sys/ioctl/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ int ioctl(int fildes, int request, ...) {
case FIONBIO: {
va_list ap;
va_start(ap, request);
socket->blocking = *va_arg(ap, const int*) != 0;
socket->blocking = *va_arg(ap, const int*) == 0;
va_end(ap);

return 0;
Expand Down

0 comments on commit b46fcaf

Please sign in to comment.