Don't use printf in signal handler
This commit is contained in:
parent
5fbd7abd26
commit
12e4cd391a
1 changed files with 0 additions and 1 deletions
1
main.c
1
main.c
|
@ -45,7 +45,6 @@ void forward_signal(int sig)
|
|||
{
|
||||
if (kill(pid_child, sig) == -1)
|
||||
{
|
||||
printf("Unable to forward signal %d to child\n", sig);
|
||||
if (sig == SIGTERM)
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue