map interruption of close by signal to success rather than EINPROGRESS
authorRich Felker <dalias@aerifal.cx>
Fri, 20 Feb 2015 23:35:05 +0000 (18:35 -0500)
committerRich Felker <dalias@aerifal.cx>
Fri, 20 Feb 2015 23:35:05 +0000 (18:35 -0500)
commit6bea5dc69892cd9ff0c222474e7dd468c29dfa75
tree4bd46137fc54fb225e84cecc9918f82e6c590549
parent36d8e972231c397194e513691d09f7d489de0a62
map interruption of close by signal to success rather than EINPROGRESS

commit 82dc1e2e783815e00a90cd3f681436a80d54a314 addressed the
resolution of Austin Group issue 529, which requires close to leave
the fd open when failing with EINTR, by returning the newly defined
error code EINPROGRESS. this turns out to be a bad idea, though, since
legacy applications not aware of the new specification are likely to
interpret any error from close except EINTR as a hard failure.
src/unistd/close.c