From rmh@khazad.dyndns.org  Thu Jan 20 00:16:41 2005
Return-Path: <rmh@khazad.dyndns.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9D7E816A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Jan 2005 00:16:41 +0000 (GMT)
Received: from khazad.dyndns.org (174.red-62-57-140.user.auna.net [62.57.140.174])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4625543D39
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Jan 2005 00:16:41 +0000 (GMT)
	(envelope-from rmh@khazad.dyndns.org)
Received: from rmh by khazad.dyndns.org with local (Exim 4.34)
	id 1CrPuu-000H5w-BW
	for FreeBSD-gnats-submit@freebsd.org; Thu, 20 Jan 2005 01:11:16 +0100
Message-Id: <E1CrPuu-000H5w-BW@khazad.dyndns.org>
Date: Thu, 20 Jan 2005 01:11:16 +0100
From: Robert Millan <rmh@debian.org>
Reply-To: Robert Millan <rmh@debian.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: sched_getparam returns weird priority number
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         76485
>Category:       kern
>Synopsis:       [libc] sched_getparam(2) returns weird priority number
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 20 00:20:29 GMT 2005
>Closed-Date:    Wed Dec 08 17:30:18 UTC 2010
>Last-Modified:  Wed Dec 08 17:30:18 UTC 2010
>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:

From: "Pedro F. Giffuni" <giffunip@tutopia.com>
To: bug-followup@FreeBSD.org, rmh@debian.org
Cc:  
Subject: Re: kern/76485: [libc] sched_getparam(2) returns weird priority number
Date: Wed, 8 Dec 2010 07:30:55 -0800 (PST)

 At least on 8.1-RELEASE (i386)=A0this bug doesn't seem present:=0A=0Apriori=
 ty=3D63=0A=A0=0AMaybe we can close this PR?=0A=0A=0A      

From: Robert Millan <rmh@debian.org>
To: "Pedro F. Giffuni" <giffunip@tutopia.com>
Cc: bug-followup@freebsd.org
Subject: Re: kern/76485: [libc] sched_getparam(2) returns weird priority number
Date: Wed, 8 Dec 2010 16:39:41 +0100

 This bug is very old.  It's likely been fixed already indeed.
 
 Feel free to close it, thanks!
 
 -- 
 Robert Millan
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Wed Dec 8 17:30:03 UTC 2010 
State-Changed-Why:  
apparently OBE. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76485 
>Unformatted:
