aboutsummaryrefslogtreecommitdiffstats
path: root/src/state_file.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-25 11:09:13 +0200
committerMax Kellermann <max@duempel.org>2010-07-25 12:01:59 +0200
commite4b7a113fded192d2ad31b68a87cf444f206a04e (patch)
treee1babf84c86d89469597058521ee72e48df85dfd /src/state_file.c
parent7820ebb82ea66619ae72caf3bdeb7fd16d035fdd (diff)
downloadmpd-e4b7a113fded192d2ad31b68a87cf444f206a04e.tar.gz
mpd-e4b7a113fded192d2ad31b68a87cf444f206a04e.tar.xz
mpd-e4b7a113fded192d2ad31b68a87cf444f206a04e.zip
database, ...: remove EINTR checks after stdio calls
MPD doesn't have child processes anymore, and thus we're not expecting to receive SIGCHLD very often. Since hard disk access isn't interrupted by signals anyway, we don't need those excessive checks.
Diffstat (limited to 'src/state_file.c')
-rw-r--r--src/state_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state_file.c b/src/state_file.c
index d9ae155a3..e048de7a0 100644
--- a/src/state_file.c
+++ b/src/state_file.c
@@ -65,7 +65,7 @@ state_file_write(void)
audio_output_state_save(fp);
playlist_state_save(fp, &g_playlist);
- while(fclose(fp) && errno == EINTR) /* nothing */;
+ fclose(fp);
prev_volume_version = sw_volume_state_get_hash();
prev_output_version = audio_output_state_get_version();
@@ -100,7 +100,7 @@ state_file_read(void)
g_warning("Unrecognized line in state file: %s", line);
}
- while(fclose(fp) && errno == EINTR) /* nothing */;
+ fclose(fp);
prev_volume_version = sw_volume_state_get_hash();
prev_output_version = audio_output_state_get_version();