Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2005 01:11:16 +0100
From:      Robert Millan <rmh@debian.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/76485: sched_getparam returns weird priority number
Message-ID:  <E1CrPuu-000H5w-BW@khazad.dyndns.org>
Resent-Message-ID: <200501200020.j0K0KTJj089852@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1CrPuu-000H5w-BW>