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


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to