summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index fc5ad45..d9f8a91 100644
--- a/src/main.c
+++ b/src/main.c
@@ -392,7 +392,7 @@ main (int argc, char **argv)
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",
argv[0]);
exit (EX_OSERR);