summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfsfileengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/io/qfsfileengine.cpp')
-rw-r--r--src/corelib/io/qfsfileengine.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/corelib/io/qfsfileengine.cpp b/src/corelib/io/qfsfileengine.cpp
index e198cd6d75..bed77678fa 100644
--- a/src/corelib/io/qfsfileengine.cpp
+++ b/src/corelib/io/qfsfileengine.cpp
@@ -170,10 +170,7 @@ QFSFileEngine::~QFSFileEngine()
if (d->fh) {
fclose(d->fh);
} else if (d->fd != -1) {
- int ret;
- do {
- ret = QT_CLOSE(d->fd);
- } while (ret == -1 && errno == EINTR);
+ QT_CLOSE(d->fd);
}
}
QList<uchar*> keys = d->maps.keys();
@@ -378,7 +375,7 @@ bool QFSFileEnginePrivate::closeFdFh()
ret = fclose(fh);
} else {
// Close unbuffered file.
- EINTR_LOOP(ret, QT_CLOSE(fd));
+ ret = QT_CLOSE(fd);
}
// We must reset these guys regardless; calling close again after a