From 0cf98a7ececd9b85321e4c88bf919f977893435d Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 1 Dec 2010 13:52:58 +0100 Subject: [PATCH] Daemonize by default --- src/monitor/monitor.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index ac6ef19..670753a 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(); -- 1.7.3.2