kern/76485: sched_getparam returns weird priority number
Robert Millan
rmh at debian.org
Wed Jan 19 16:20:30 PST 2005
>Number: 76485
>Category: kern
>Synopsis: sched_getparam returns weird priority number
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 20 00:20:29 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Robert Millan
>Release: GNU/kFreeBSD 5.3+1-1 i386
>Organization:
Debian
>Environment:
System: GNU/kFreeBSD aragorn 5.3+1-1 #0: Tue Jan 4 17:47:45 CET 2005 i386 GNU/KFreeBSD
>Description:
sched_getparam () returns a weird priority value.
Examples: -1045002480, -1047721320, -1051899692, -1045637360 ...
>How-To-Repeat:
#include <stdio.h>
#include <sched.h>
#include <errno.h>
int
main ()
{
struct sched_param sched;
if (sched_getparam (getpid (), &sched) == -1)
{
perror ("sched_getparam");
return 1;
}
printf ("priority = %d\n", sched.sched_priority);
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list