From owner-freebsd-bugs Mon Jun 2 11:10:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA02944 for bugs-outgoing; Mon, 2 Jun 1997 11:10:02 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA02938; Mon, 2 Jun 1997 11:10:01 -0700 (PDT) Resent-Date: Mon, 2 Jun 1997 11:10:01 -0700 (PDT) Resent-Message-Id: <199706021810.LAA02938@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, smc@itsy.com 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 ; 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 X-Send-Pr-Version: 3.2 Subject: bin/3762: rtprio(1) bug (fix included) Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 3762 >Category: bin >Synopsis: Bogus return values from rtprio(1) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jun 2 11:10:00 PDT 1997 >Last-Modified: >Originator: Shawn M. Carey >Organization: Intellisys >Release: FreeBSD 2.2.1-RELEASE i386 >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) { >Audit-Trail: >Unformatted: