Skip to content

Commit

Permalink
Tests: IOSocket: Check if the file descriptor returned from accept is…
Browse files Browse the repository at this point in the history
… non-blocking.
  • Loading branch information
heiher committed Feb 7, 2025
1 parent 4ab1c9a commit 4d8735b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/io-socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ task_server_entry (void *data)
/* accept */
cfd = hev_task_io_socket_accept (fd, NULL, NULL, NULL, NULL);
assert (cfd >= 0);
assert ((fcntl (cfd, F_GETFL) & O_NONBLOCK) == O_NONBLOCK);

assert (hev_task_add_fd (task, cfd, POLLIN | POLLOUT) == 0);

Expand Down

0 comments on commit 4d8735b

Please sign in to comment.