From cb57f38188a761c3654c5a7aeb5adaae23bf30d5 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 1 Dec 2010 13:52:58 +0100 Subject: Daemonize by default --- src/monitor/monitor.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/monitor/monitor.c') diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index 3eca7649..640d94ad 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -2250,6 +2250,10 @@ int main(int argc, const char *argv[]) return 1; } + if (!opt_daemon && !opt_interactive) { + opt_daemon = 1; + } + poptFreeContext(pc); uid = getuid(); -- cgit