removing debug messages from signal handlers
As unfortunate as it is to remove such useful debugging messages, it's necessary to fix a potential deadlock with signal handling. A bunch of functions the debug functions call aren't safe to call from a signal handler. There are some alternate solutions, but they're neither pretty nor simple. So just remove them entirely for now. git-svn-id: https://svn.musicpd.org/mpd/trunk@6828 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -62,7 +62,7 @@ static void chldSigHandler(int signal)
|
||||
{
|
||||
int status;
|
||||
int pid;
|
||||
DEBUG("main process got SIGCHLD\n");
|
||||
/* DEBUG("main process got SIGCHLD\n"); */
|
||||
while (0 != (pid = wait3(&status, WNOHANG, NULL))) {
|
||||
if (pid < 0) {
|
||||
if (errno == EINTR)
|
||||
|
Reference in New Issue
Block a user