From owner-svn-src-head@FreeBSD.ORG Thu Jan 6 22:41:39 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 58D5D106567A; Thu, 6 Jan 2011 22:41:39 +0000 (UTC) Date: Thu, 6 Jan 2011 22:41:39 +0000 From: Alexander Best To: Anonymous Message-ID: <20110106224139.GA62043@freebsd.org> References: <201101041413.p04EDA4f038360@svn.freebsd.org> <20110106211017.GA46874@freebsd.org> <201101061618.39695.jhb@freebsd.org> <20110106214243.GA51802__16340.9905079336$1294350178$gmane$org@freebsd.org> <86bp3the8p.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86bp3the8p.fsf@gmail.com> Cc: src-committers@freebsd.org, John Baldwin , svn-src-all@freebsd.org, Garrett Cooper , Konstantin Belousov , svn-src-head@freebsd.org Subject: Re: svn commit: r216955 - head/usr.sbin/rtprio X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2011 22:41:39 -0000 On Fri Jan 7 11, Anonymous wrote: > Alexander Best writes: > > > On Thu Jan 6 11, John Baldwin wrote: > >> Note that that usage is rather pointless since it means you apply rtprio to > >> the 'rtprio' process that is about to exit. :) > > > > yeah but at least it makes the usage of -X consistent. ;) also consider the > > following: the current shell has idle priority and you want to run rtprio in > > normal priority. then rtprio -t -0 would be a neat way of doing > > rtprio -t rtprio. ;) wel...not quite, because the priotity gets set to "NORMAL" > > when rtprio is almost finished running. ;) > > I think it'd be useful if the syntax allowed smth like > > $ rtprio 1 -0 -111 -222 -333 -444 -555 ... defenately, but that would require quite some code. also please bear in mind: in its current form rtprio *DOES* process -0. my code doesn't change that. the only thing that it changes is that before hand -0 was processed *AND* then also executed. now the execution doesn't take place. cheers. alex > > > > > i admit using -0 for setting rtpio's own priority isn't very useful, but the > > rtprio(1) manual states: > > > > Pid of 0 means "the current process". -- a13x