You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jf...@apache.org on 2009/04/08 11:12:33 UTC

svn commit: r763151 - /httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c

Author: jfclere
Date: Wed Apr  8 09:12:32 2009
New Revision: 763151

URL: http://svn.apache.org/viewvc?rev=763151&view=rev
Log:
Remove the C++ style comment and use 1 for keep_running.
(Thanks RĂ¼diger).

Modified:
    httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c

Modified: httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c?rev=763151&r1=763150&r2=763151&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c (original)
+++ httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c Wed Apr  8 09:12:32 2009
@@ -317,7 +317,7 @@
                              "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 @@
                 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);