httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9011] - Worker-MPM error log: the listener thread didn't exit
Date Wed, 23 Apr 2003 00:07:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9011>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9011

Worker-MPM error log: the listener thread didn't exit





------- Additional Comments From jpr5+apache@darkridge.com  2003-04-23 00:07 -------
Sorry if this is bothersome, but looking at the code, I'm not sure I understand this properly,
maybe 
this is a bug?  I'm probably misunderstanding this..  pthread_kill() and kill() both return
0 on 
success; shouldn't this loop be in a success condition if it successfully kills the thread?
 Isn't 
that the point of the loop?  If I interpreted it correctly, then this loop will always trigger
the 
error unless pthread_kill() or kill() fails, no?   
  
         iter = 0;  
        while (iter < 10 &&  
#ifdef HAVE_PTHREAD_KILL  
               pthread_kill(*listener_os_thread, 0)  
#else  
               kill(ap_my_pid, 0)  
#endif  
               == 0) {  
            /* listener not dead yet */  
            apr_sleep(apr_time_make(0, 500000));  
            wakeup_listener();  
            ++iter;  
        }     
	 if (iter >= 10) { 
            ap_log_error(APLOG_MARK, APLOG_CRIT, 0, ap_server_conf, 
                         "the listener thread didn't exit"); 
        }

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message