Re: spawn-pipe: close() EINTR handling

2013-07-03 Thread Pádraig Brady
On 07/03/2013 01:46 PM, Eric Blake wrote: > On 07/03/2013 05:26 AM, Pádraig Brady wrote: >> So I was reading http://austingroupbugs.net/view.php?id=529 >> which states on Linux that one shouldn't retry close() after EINTR >> as the descriptor is already closed in that case >> and another thread cou

Re: spawn-pipe: close() EINTR handling

2013-07-03 Thread Eric Blake
On 07/03/2013 05:26 AM, Pádraig Brady wrote: > So I was reading http://austingroupbugs.net/view.php?id=529 > which states on Linux that one shouldn't retry close() after EINTR > as the descriptor is already closed in that case > and another thread could reuse the descriptor > which a retried close(

spawn-pipe: close() EINTR handling

2013-07-03 Thread Pádraig Brady
So I was reading http://austingroupbugs.net/view.php?id=529 which states on Linux that one shouldn't retry close() after EINTR as the descriptor is already closed in that case and another thread could reuse the descriptor which a retried close() would close erroneously. That suggests that the foll