misc/162403: regression in FreeBSD/9 regarding pthread timeouts in kernel context

Armin Gruner ag at muc.de
Fri Nov 11 16:50:11 UTC 2011


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

From: Armin Gruner <ag at muc.de>
To: Jilles Tjoelker <jilles at stack.nl>
Cc: bug-followup at FreeBSD.org, davidxu at FreeBSD.org, ag-freebsd at muc.de
Subject: Re: misc/162403: regression in FreeBSD/9 regarding pthread timeouts
	in kernel context
Date: Fri, 11 Nov 2011 17:22:45 +0100

 On Thu, Nov 10, 2011 at 11:14:46PM +0100, Jilles Tjoelker wrote:
 > > [pthread_cond_timedwait() does not time out when called from RT
 > > priority process]
 > 
 > It looks like _thr_ucond_wait() drops the flags such as CVWAIT_ABSTIME
 > and CVWAIT_CLOCKID that may be passed from cond_wait_kernel() in
 > thr_cond.c. The below patch fixes the problem for me.
 > Testing and review would be nice.
 <...>
 
 Hi Jilles,
 
 I'm impressed how fast you took care of the PR! :-)
 
 Yes, the fix works for me!
 Thanks!
 
 Greetings from Munich
     Armin


More information about the freebsd-bugs mailing list