Re: accept(2) returning a O_NONBLOCK socket

2025-04-18 Thread Samuel Thibault
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

accept(2) returning a O_NONBLOCK socket

2025-04-18 Thread yelninei--- via Bug reports for the GNU Hurd
Hello, This was originally https://issues.guix.gnu.org/77610. Guix recently switched to systemd-style socket activation (https://www.freedesktop.org/software/systemd/man/latest/daemon.html#Socket-Based%20Activation) for their daemon. When I tried this on a Guix Hurd VM the first connection to