From: mmj Date: Tue, 1 Jun 2004 22:57:48 +0000 (+1000) Subject: Fix daemonizing X-Git-Tag: RELEASE_1_0_0~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54d632ff1c8c8b9124111a0eeb02bf50fc71484e;p=thirdparty%2Fmlmmj.git Fix daemonizing --- diff --git a/src/mlmmj-maintd.c b/src/mlmmj-maintd.c index 95f619a6..7208e06d 100644 --- a/src/mlmmj-maintd.c +++ b/src/mlmmj-maintd.c @@ -328,12 +328,10 @@ int main(int argc, char **argv) mlmmjsend = concatstr(2, bindir, "/mlmmj-send"); free(bindir); - if(daemonize) { - if(daemon(1,0) < 0) { - log_error(LOG_ARGS, "Could not daemonize. Only one " - "maintenance run will be done."); - daemonize = 0; - } + if(daemon(1,0) < 0) { + log_error(LOG_ARGS, "Could not daemonize. Only one " + "maintenance run will be done."); + daemonize = 0; } for(;;) {