Bug 14383

Summary: pthread_kill() does not call sighandler of specific thread
Product: Base System Reporter: ag <ag>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.2-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description ag 1999-10-17 23:30:01 UTC
		If using pthread_kill(), the signal handler is 
		not called, if the specific thread is e.g. sleep()ing.
		Only EINTR is returned.

Fix: (applies both to RELENG_3 and CURRENT)
		If the thread which should be signalled is in
		SLEEP_WAIT, SELECT_WAIT and similar states, *RECORD*
		the signal in the sigpending mask, as done in other
		states too:
How-To-Repeat: 
		Run /usr/src/lib/libc_r/test/sigsuspend.
		The test will fail because the signal handler does
		not get called that many times than expected.
Comment 1 Daniel Eischen freebsd_committer freebsd_triage 1999-12-17 11:21:07 UTC
State Changed
From-To: open->closed

Fixed in -current.