Tim Rühsen
2018-03-14 15:04:32 UTC
Hi,
just stumbled upon nonintr_close() in spawn-pipe.c which has this loop:
do
retval = close (fd);
while (retval < 0 && errno == EINTR);
Regarding the man page of libc, this shouldn't be done on certain
systems. E.g. it says the Linux kernel closes the file descriptor even
on EINTR. With the effect of possible race conditions in multi-threaded
code.
What do the experts here say ?
With Best Regards, Tim
just stumbled upon nonintr_close() in spawn-pipe.c which has this loop:
do
retval = close (fd);
while (retval < 0 && errno == EINTR);
Regarding the man page of libc, this shouldn't be done on certain
systems. E.g. it says the Linux kernel closes the file descriptor even
on EINTR. With the effect of possible race conditions in multi-threaded
code.
What do the experts here say ?
With Best Regards, Tim