diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-23 22:38:36 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-23 22:38:36 +0200 |
commit | 260e1a9037d53b8accad3c94f27544c78a1a9b27 (patch) | |
tree | 2179c8bd3e5471150ce979dd1702b11358218cea /src/directory.c | |
parent | 5cc5c378560acb0629fff40053e948eb071c0885 (diff) | |
download | mpd-260e1a9037d53b8accad3c94f27544c78a1a9b27.tar.gz mpd-260e1a9037d53b8accad3c94f27544c78a1a9b27.tar.xz mpd-260e1a9037d53b8accad3c94f27544c78a1a9b27.zip |
Remove EINTR checking for open(2)
open(2) should only interrupt on "slow" devices, afaik...
[mk: still using fopen()]
Diffstat (limited to 'src/directory.c')
-rw-r--r-- | src/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.c b/src/directory.c index a3efdf15e..9c8bd23fa 100644 --- a/src/directory.c +++ b/src/directory.c @@ -968,7 +968,7 @@ int writeDirectoryDB(void) DEBUG("writing DB\n"); - while (!(fp = fopen(dbFile, "w")) && errno == EINTR); + fp = fopen(dbFile, "w"); if (!fp) { ERROR("unable to write to db file \"%s\": %s\n", dbFile, strerror(errno)); |