projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01439e2
)
remove 'illegal' (non-reentrant) log logic from signal handler
author
Christian Grothoff
<christian@grothoff.org>
Tue, 3 Mar 2020 11:31:12 +0000
(12:31 +0100)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 3 Mar 2020 11:31:12 +0000
(12:31 +0100)
src/util/gnunet-timeout.c
patch
|
blob
|
history
diff --git
a/src/util/gnunet-timeout.c
b/src/util/gnunet-timeout.c
index f650475cb65b8a3ea2bff61facfdb8cdcbeed3fb..4c3c9125d988228a6c8de303b5d09bb7199f2981 100644
(file)
--- 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);