bin/32295: pthread dont dequeue signals

Andrew Belashov bel at tts.orel.ru
Sat Nov 8 01:20:06 PST 2003


The following reply was made to PR bin/32295; it has been noted by GNATS.

From: Andrew Belashov <bel at tts.orel.ru>
To: bel at orel.ru, freebsd-gnats-submit at FreeBSD.org, lwa at teaser.fr
Cc:  
Subject: Re: bin/32295: pthread dont dequeue signals
Date: Sat, 8 Nov 2003 12:17:02 +0300

 Hi!
 
 I have a small patch for resolving this problem.
 Patch tested on heavy load MySQL server 4.0.16.
 
 ------------------------------------------------------
 --- src/lib/libc_r/uthread/uthread_sig.c.orig	Wed Mar  5 07:28:08 2003
 +++ src/lib/libc_r/uthread/uthread_sig.c	Thu Nov  6 17:16:13 2003
 @@ -160,8 +160,10 @@
  			_thread_sigq[sig - 1].signo = sig;
  			_sigq_check_reqd = 1;
  		}
 -		else
 +		else {
  			DBG_MSG("Got signal %d, ignored.\n", sig);
 +			_sigq_check_reqd = 1;
 +		}
  	}
  	/*
  	 * The signal handlers should have been installed so that they
 ------------------------------------------------------
 
 With best regards,
  Andrew Belashov.
 


More information about the freebsd-threads mailing list