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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user