diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-03 12:31:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-03 12:31:12 +0100 |
commit | 9a6588810236327f0a7155c29bd5d5a3f3822652 (patch) | |
tree | 1db2a69400d6e6c6c9fed9412c991814758cb92b /src/util/gnunet-timeout.c | |
parent | 01439e25d844b3169fa61c2527b4af5c948a2e65 (diff) | |
download | gnunet-9a6588810236327f0a7155c29bd5d5a3f3822652.tar.gz gnunet-9a6588810236327f0a7155c29bd5d5a3f3822652.zip |
remove 'illegal' (non-reentrant) log logic from signal handler
Diffstat (limited to 'src/util/gnunet-timeout.c')
-rw-r--r-- | src/util/gnunet-timeout.c | 2 |
1 files changed, 0 insertions, 2 deletions
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) | |||
45 | if (WIFEXITED (status) != 0) | 45 | if (WIFEXITED (status) != 0) |
46 | { | 46 | { |
47 | ret = WEXITSTATUS (status); | 47 | ret = WEXITSTATUS (status); |
48 | fprintf (stderr, "Process exited with result %u\n", ret); | ||
49 | _exit (ret); /* return same status code */ | 48 | _exit (ret); /* return same status code */ |
50 | } | 49 | } |
51 | if (WIFSIGNALED (status) != 0) | 50 | if (WIFSIGNALED (status) != 0) |
52 | { | 51 | { |
53 | ret = WTERMSIG (status); | 52 | ret = WTERMSIG (status); |
54 | fprintf (stderr, "Process received signal %u\n", ret); | ||
55 | kill (getpid (), ret); /* kill self with the same signal */ | 53 | kill (getpid (), ret); /* kill self with the same signal */ |
56 | } | 54 | } |
57 | _exit (-1); | 55 | _exit (-1); |