aboutsummaryrefslogtreecommitdiffstats
path: root/src/state_file.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-23 22:38:36 +0200
committerMax Kellermann <max@duempel.org>2008-09-23 22:38:36 +0200
commit260e1a9037d53b8accad3c94f27544c78a1a9b27 (patch)
tree2179c8bd3e5471150ce979dd1702b11358218cea /src/state_file.c
parent5cc5c378560acb0629fff40053e948eb071c0885 (diff)
downloadmpd-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 '')
-rw-r--r--src/state_file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/state_file.c b/src/state_file.c
index 3bc4f8f0c..2ce5e66b4 100644
--- a/src/state_file.c
+++ b/src/state_file.c
@@ -55,8 +55,7 @@ void write_state_file(void)
if (!sfpath)
return;
- while (!(fp = fopen(sfpath, "w")) && errno == EINTR);
-
+ fp = fopen(sfpath, "w");
if (mpd_unlikely(!fp)) {
ERROR("problems opening state file \"%s\" for writing: %s\n",
sfpath, strerror(errno));