Merge "Don't use TEMP_FAILURE_RETRY on close in bionic."

This commit is contained in:
Elliott Hughes 2015-05-15 23:24:12 +00:00 committed by Gerrit Code Review
commit 882283e9e2
2 changed files with 2 additions and 3 deletions

View file

@ -86,5 +86,5 @@ __sseek(void *cookie, fpos_t offset, int whence)
int int
__sclose(void *cookie) __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 is not one of the stdio file descriptors, close it. */
if (dev_null > 2) { if (dev_null > 2) {
TRACE("[ Closing /dev/null file-descriptor=%d]", dev_null); TRACE("[ Closing /dev/null file-descriptor=%d]", dev_null);
status = TEMP_FAILURE_RETRY(close(dev_null)); if (close(dev_null) == -1) {
if (status == -1) {
DL_ERR("close failed: %s", strerror(errno)); DL_ERR("close failed: %s", strerror(errno));
return_value = -1; return_value = -1;
} }