You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2011/11/18 22:39:34 UTC
svn commit: r1203858 - /httpd/httpd/trunk/server/mpm/event/event.c
Author: trawick
Date: Fri Nov 18 21:39:33 2011
New Revision: 1203858
URL: http://svn.apache.org/viewvc?rev=1203858&view=rev
Log:
follow up to r1202257 -- perform normal wakeup processing when
APR_EINTR is seen from apr_pollset_poll(), with expectation that
it was triggered by apr_pollset_wakeup()
Modified:
httpd/httpd/trunk/server/mpm/event/event.c
Modified: httpd/httpd/trunk/server/mpm/event/event.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/event/event.c?rev=1203858&r1=1203857&r2=1203858&view=diff
==============================================================================
--- httpd/httpd/trunk/server/mpm/event/event.c (original)
+++ httpd/httpd/trunk/server/mpm/event/event.c Fri Nov 18 21:39:33 2011
@@ -1481,16 +1481,13 @@ static void * APR_THREAD_FUNC listener_t
}
#endif
rc = apr_pollset_poll(event_pollset, timeout_interval, &num, &out_pfd);
- if (rc != APR_SUCCESS) {
- if (APR_STATUS_IS_EINTR(rc)) {
- continue;
- }
- if (!APR_STATUS_IS_TIMEUP(rc)) {
- ap_log_error(APLOG_MARK, APLOG_CRIT, rc, ap_server_conf,
- "apr_pollset_poll failed. Attempting to "
- "shutdown process gracefully");
- signal_threads(ST_GRACEFUL);
- }
+ if (rc != APR_SUCCESS
+ && !APR_STATUS_IS_EINTR(rc)
+ && !APR_STATUS_IS_TIMEUP(rc)) {
+ ap_log_error(APLOG_MARK, APLOG_CRIT, rc, ap_server_conf,
+ "apr_pollset_poll failed. Attempting to "
+ "shutdown process gracefully");
+ signal_threads(ST_GRACEFUL);
}
if (listener_may_exit) {