From smc@itsy.com  Mon Jun  2 11:00:46 1997
Received: from beastie.isc.itsy.com (vm.itsy.com [199.92.100.7])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA02276
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 2 Jun 1997 11:00:40 -0700 (PDT)
Received: (from smc@localhost)
	by beastie.isc.itsy.com (8.8.2/8.8.5) id OAA27654;
	Mon, 2 Jun 1997 14:02:58 -0400 (EDT)
Message-Id: <199706021802.OAA27654@beastie.isc.itsy.com>
Date: Mon, 2 Jun 1997 14:02:58 -0400 (EDT)
From: smc@itsy.com
Reply-To: smc@itsy.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: rtprio(1) bug (fix included)
X-Send-Pr-Version: 3.2

>Number:         3762
>Category:       bin
>Synopsis:       Bogus return values from rtprio(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dufault
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun  2 11:10:00 PDT 1997
>Closed-Date:    Sat Dec 14 07:28:42 PST 2002
>Last-Modified:  Sat Dec 14 07:28:42 PST 2002
>Originator:     Shawn M. Carey
>Release:        FreeBSD 2.2.1-RELEASE i386
>Organization:
Intellisys
>Environment:

	

>Description:

	When changing a process priority, rtprio returns 1 to the
shell wether it succeeds or not.

>How-To-Repeat:

	From the c-shell:
	% rtprio 5 -$$
	% echo $status

>Fix:
	
	Apply the following patch to /usr/src/usr.sbin/rtprio/rtprio.c:
*** rtprio.c.orig	Sun Oct  2 00:48:21 1994
--- rtprio.c	Mon Jun  2 13:55:08 1997
***************
*** 116,121 ****
--- 116,123 ----
  		if (rtprio(RTP_SET, proc, &rtp) != 0) {
  			perror(argv[0]);
  			exit (1);
+ 		} else {
+ 			exit (0);
  		}
  
  		if (proc == 0) {


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dufault 
Responsible-Changed-By: dufault 
Responsible-Changed-When: Fri Aug 1 05:00:17 PDT 1997 
Responsible-Changed-Why:  
Take over rtprio/p1003.4 reports 

From: Joseph Holland King <gte743n@cad.gatech.edu>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: bin/3762: Bogus return values from rtprio(1)
Date: Wed, 20 Nov 2002 18:42:15 -0500

 this seems to be fix in both current and stable. 
 therefore i think this can be closed.
 
 
 -- 
 Holland King        
 gte743n@cad.gatech.edu
State-Changed-From-To: open->closed 
State-Changed-By: kuriyama 
State-Changed-When: Sat Dec 14 07:27:05 PST 2002 
State-Changed-Why:  
My old (2001/01/25) commit already fixes this problem. 

Reported by:	Joseph Scott <joseph@randomnetworks.com> 

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