[PATCH] Looping for EINTR on close() is wrong on Linux

http://archlinux.2023198.n4.nabble.com –
From: Sergio Correia <[hidden email]>
Linux closes the descriptor unconditionally even if the close() call is
interrupted.
This patch changes the CLOSE macro in libalpm not to loop on EINTR any
longer. Now it is simply a close() call.
There was another site performing such a loop on EINTR after close, in
pacman/conf.c, and it was also changed to a simple close() call.
Links for reference:
- http://lkml.indiana.edu/hypermail/linux/kernel/0509.1/0877.html- http://utcc.utoronto.ca/~cks/space/blog/unix/CloseEINTR- https://sites.google.com/site/michaelsafyan/software-engineering/checkfo...
(Distributions)