Don't use printf in signal handler

This commit is contained in:
madmaurice 2021-01-15 20:22:22 +01:00
parent 5fbd7abd26
commit 12e4cd391a

1
main.c
View file

@ -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);
}