From: Christian Grothoff Date: Tue, 3 Mar 2020 11:31:12 +0000 (+0100) Subject: remove 'illegal' (non-reentrant) log logic from signal handler X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9a6588810236327f0a7155c29bd5d5a3f3822652;p=oweals%2Fgnunet.git remove 'illegal' (non-reentrant) log logic from signal handler --- diff --git a/src/util/gnunet-timeout.c b/src/util/gnunet-timeout.c index f650475cb..4c3c9125d 100644 --- a/src/util/gnunet-timeout.c +++ b/src/util/gnunet-timeout.c @@ -45,13 +45,11 @@ sigchld_handler (int val) if (WIFEXITED (status) != 0) { ret = WEXITSTATUS (status); - fprintf (stderr, "Process exited with result %u\n", ret); _exit (ret); /* return same status code */ } if (WIFSIGNALED (status) != 0) { ret = WTERMSIG (status); - fprintf (stderr, "Process received signal %u\n", ret); kill (getpid (), ret); /* kill self with the same signal */ } _exit (-1);