aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'options.c')
-rw-r--r--options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options.c b/options.c
index b22e801c..13df2277 100644
--- a/options.c
+++ b/options.c
@@ -307,9 +307,9 @@ struct query *ctl; /* option record to be initialized */
return(-1);
}
- if (poll_interval == 0 && use_syslog)
+ if ((poll_interval == 0 || nodetach) && use_syslog)
{
- fputs("The --syslog option is only valid with the --daemon option.\n", stderr);
+ fputs("The --syslog option is only valid when running detached.\n", stderr);
return(-1);
}