This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/2796] pthread_mutexattr_getprioceiling() returns prioceiling out of range


------- Additional Comments From pasky at suse dot cz  2006-06-19 01:24 -------
Created an attachment (id=1100)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1100&action=view)
Proposed patch

This patch makes the getprioceiling() functions check if the priority is high
enough and bump it to the minimal allowable priority if not. It is rather ugly
to do the sanitization at that point but the thing is that we default for 0
e.g. in the constant initializers so a pthread_mutexattr_init()-ish solution
isn't really viable. Perhaps we could cache the range, though.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2796

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]