Red Hat Bugzilla – Bug 127590
pthread_attr_inheritsched default value incorrect
Last modified: 2007-11-30 17:10:45 EST
Description of problem:
Man page says:
Default value: PTHREAD_EXPLICIT_SCHED. Is really PTHREAD_INHERIT_SCHED
so setting schedparam in the attr gets ignored.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Take a look at pthread_create.c in glibc and it's obvious. It needs
ATTR_FLAG_NOTINHERITSCHED to be set in order to take the sched params.
2.Write a program to set the priority or scheduling type via the
pthread_attr. They don't take unless you call
pthread_attr_setinheritsched(, PTHREAD_EXPLICIT_SCHED) first
Either that or pthread_attr_init needs to set
ATTR_FLAG_NOTINHERITSCHED to make the man page correct.
man page is part of glibc-devel.
Once again, difference between LinuxThreads and NPTL. Cannot be fixed
until the man page is accepted in man-pages and rewritten to cover
The man page must move to man-pages to be generalized for LT and NPTL.
Fedora Core 2 is now maintained by the Fedora Legacy project for
security updates only. If this problem is a security issue, please
reopen and reassign to the Fedora Legacy product. If it is not a
security issue and hasn't been resolved in the current FC3 updates or
in the FC4 test release, reopen and change the version to match.
Closed per above message and lack of response. Note that FC2 is not even
supported by Fedora Legacy currently.