From e4b7a113fded192d2ad31b68a87cf444f206a04e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 25 Jul 2010 11:09:13 +0200 Subject: 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. --- src/sig_handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sig_handlers.c') diff --git a/src/sig_handlers.c b/src/sig_handlers.c index 0b4a24396..99a0b7e06 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); -- cgit v1.2.3