From owner-freebsd-bugs@FreeBSD.ORG Mon Nov 22 11:30:47 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C2AB16A4CE for ; Mon, 22 Nov 2004 11:30:47 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C28A43D2F for ; Mon, 22 Nov 2004 11:30:47 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iAMBUl6t083507 for ; Mon, 22 Nov 2004 11:30:47 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iAMBUk0A083506; Mon, 22 Nov 2004 11:30:46 GMT (envelope-from gnats) Date: Mon, 22 Nov 2004 11:30:46 GMT Message-Id: <200411221130.iAMBUk0A083506@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Robert Watson Subject: Re: bin/74227: renice odd behavior X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Robert Watson List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2004 11:30:47 -0000 The following reply was made to PR bin/74227; it has been noted by GNATS. From: Robert Watson To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: Re: bin/74227: renice odd behavior Date: Mon, 22 Nov 2004 11:26:01 +0000 (GMT) robert@fledge.watson.org Principal Research Scientist, McAfee Research On Mon, 22 Nov 2004, Jorge Mario G. Mazo wrote: > >Description: > When you renice a proces to 20 and the you renice it to -20 > it wont jump from 20 to -20. it'll jump from 20 to 0 > so you have to renice it again to actually get the -20 value > *Same thing happens backwards (-20 to 20) Isn't this the documented behavior of -n in renice(8): -n Instead of changing the specified processes to the given prior- ity, interpret the following argument as an increment to be applied to the current priority of each process. Does renice work as desired if you omit the "-n" from the command line? Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research