]> granicus.if.org Git - apache/commitdiff
Remove the C++ style comment and use 1 for keep_running.
authorJean-Frederic Clere <jfclere@apache.org>
Wed, 8 Apr 2009 09:12:32 +0000 (09:12 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Wed, 8 Apr 2009 09:12:32 +0000 (09:12 +0000)
(Thanks RĂ¼diger).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@763151 13f79535-47bb-0310-9956-ffa450edef68

modules/cluster/mod_heartmonitor.c

index 315d7eec1ee6f079e0e72c4cf482837603063b3f..9d1ab509df4e8bfeec94c85f52e81aab8dffd77f 100644 (file)
@@ -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);