Hello,
yelninei--- via Bug reports for the GNU Hurd, le ven. 18 avril 2025 14:42:03
+0200, a ecrit:
> client = accept(fd, NULL, NULL);
> if (client < 0) return 1;
> fprintf(stderr, "Accepting connection\n");
> if ((fcntl(client, F_GETFL) & O_NONBLOCK) != 0)
> {
> fprintf(stderr, "Socket is O_NONBLOCK\n");
> }
> [main] Accepting connection
> [main] Socket is O_NONBLOCK
> [main] Received: hi
> [main] Accepting connection
> [main] Received: hi
> --8<---------------cut here---------------end--------------->8---
>
> Any ideas what the reason could be?
No immediate idea, no, it should be investigated, to check what happens
with the flags in __libc_accept4 on the program side, and newsock->flags
in S_socket_accept / S_io_set_some_openmodes / S_io_get_openmodes on the
pfinet side.
Samuel