Don't use TEMP_FAILURE_RETRY on close in bionic.

Bug: http://b/20501816
Change-Id: Id64b5109cc2b165fa0351b6edbb865a5e5058008
This commit is contained in:
Elliott Hughes 2015-05-15 16:20:07 -07:00
parent 0378d8f651
commit 4e8ef698d0
2 changed files with 2 additions and 3 deletions

View File

@ -86,5 +86,5 @@ __sseek(void *cookie, fpos_t offset, int whence)
int
__sclose(void *cookie)
{
return TEMP_FAILURE_RETRY(close(((FILE *)cookie)->_file));
return close(((FILE *)cookie)->_file);
}

View File

@ -2414,8 +2414,7 @@ static int nullify_closed_stdio() {
/* If /dev/null is not one of the stdio file descriptors, close it. */
if (dev_null > 2) {
TRACE("[ Closing /dev/null file-descriptor=%d]", dev_null);
status = TEMP_FAILURE_RETRY(close(dev_null));
if (status == -1) {
if (close(dev_null) == -1) {
DL_ERR("close failed: %s", strerror(errno));
return_value = -1;
}