aboutsummaryrefslogtreecommitdiff
path: root/src/sig_handlers.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/sig_handlers.c
parent7820ebb82ea66619ae72caf3bdeb7fd16d035fdd (diff)
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/sig_handlers.c')
-rw-r--r--src/sig_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sig_handlers.c b/src/sig_handlers.c
index 0b4a2439..99a0b7e0 100644
--- a/src/sig_handlers.c
+++ b/src/sig_handlers.c
@@ -66,7 +66,7 @@ void initSigHandlers(void)
sa.sa_flags = 0;
sigemptyset(&sa.sa_mask);
sa.sa_handler = SIG_IGN;
- while (sigaction(SIGPIPE, &sa, NULL) < 0 && errno == EINTR) ;
+ x_sigaction(SIGPIPE, &sa);
sa.sa_handler = exit_signal_handler;
x_sigaction(SIGINT, &sa);