Date: Mon, 2 Jun 1997 14:02:58 -0400 (EDT) From: smc@itsy.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/3762: rtprio(1) bug (fix included) Message-ID: <199706021802.OAA27654@beastie.isc.itsy.com> Resent-Message-ID: <199706021810.LAA02938@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706021802.OAA27654>
