From: Jean-Frederic Clere Date: Wed, 8 Apr 2009 09:12:32 +0000 (+0000) Subject: Remove the C++ style comment and use 1 for keep_running. X-Git-Tag: 2.3.3~730 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2b55733ee1784707ee2b8a16674bb7550c59dcf;p=apache Remove the C++ style comment and use 1 for keep_running. (Thanks RĂ¼diger). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@763151 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cluster/mod_heartmonitor.c b/modules/cluster/mod_heartmonitor.c index 315d7eec1e..9d1ab509df 100644 --- a/modules/cluster/mod_heartmonitor.c +++ b/modules/cluster/mod_heartmonitor.c @@ -317,7 +317,7 @@ static apr_status_t hm_watchdog_callback(int state, void *data, "Heartmonitor: Unable to listen for connections!"); } else { - ctx->keep_running = -1; + ctx->keep_running = 1; ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ctx->s, "Heartmonitor: %s listener started.", HM_WATHCHDOG_NAME); @@ -343,7 +343,6 @@ static apr_status_t hm_watchdog_callback(int state, void *data, pfd.p = p; pfd.reqevents = APR_POLLIN; - // timeout = apr_time_from_sec((apr_time_sec(ctx->interval) - now + cur)>1 ? (apr_time_sec(ctx->interval) - now + cur) : 1); timeout = apr_time_from_sec(1); rc = apr_poll(&pfd, 1, &n, timeout);