do not catch SIGHUP in foreground-mode

it's quite unexpected for an application running foreground in a
terminal to keep running when the terminal is closed.
also in such a case (if file logging is disabled) there's no way to
see what's happening to the proxy.
This commit is contained in:
rofl0r 2020-09-06 22:46:26 +01:00
parent 3da66364de
commit 8ba0ac4e86

View File

@ -392,7 +392,7 @@ main (int argc, char **argv)
exit (EX_OSERR); exit (EX_OSERR);
} }
if (set_signal_handler (SIGHUP, takesig) == SIG_ERR) { if (daemonized && set_signal_handler (SIGHUP, takesig) == SIG_ERR) {
fprintf (stderr, "%s: Could not set the \"SIGHUP\" signal.\n", fprintf (stderr, "%s: Could not set the \"SIGHUP\" signal.\n",
argv[0]); argv[0]);
exit (EX_OSERR); exit (EX_OSERR);