kern/103430: sleep() in a pthread returns prematurely when a signal is recv.

David Xu davidxu at freebsd.org
Sun Nov 26 19:00:26 PST 2006


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

From: David Xu <davidxu at freebsd.org>
To: bug-followup at FreeBSD.org,  mike at netronix.com
Cc:  
Subject: Re: kern/103430: sleep() in a pthread returns prematurely when a
 signal is recv.
Date: Mon, 27 Nov 2006 10:54:10 +0800

 sleep() can and should be interrupted by signal, otherwise
 this is a bug, the reason main thread's sleep() is not interrupted
 is dependent on the order how kernel or thread library select
 a thread which does not mask the signals.
 
 David Xu
 


More information about the freebsd-bugs mailing list