Hello, João Pedro Malhado, le mar. 17 déc. 2024 09:56:31 +0000, a ecrit: > I have written a little program that opens and closes the fifo twice. On the > hurd the first time it works and the second time fails. On linux they both > succeed.
No, that's just luck because cat takes some time to exit after seeing the EOF. Add a sleep(1) between the close and the open, and it will fail as well on Linux. > I noticed that after the fifo is created by runsv (line 507 in > https://sources.debian.org/src/runit/2.1.2-60/runit-2.1.2/src/runsv.c/) > > fcntl(fd,F_SETFD,1) 1 is (by pure luck...) FD_CLOEXEC, so it's not the question here. Samuek