Subject: Re: renice oddity
To: None <current-users@NetBSD.ORG>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: current-users
Date: 06/06/1998 09:15:27
> I forgot the space after the p to find to my surprise:

> % renice +6 -p9748
> 0: old priority 0, new priority 6

> but, though a member of group wheel, I was not root!  I expected
> "Permission denied" or some such.  (0=swapper)

setpriority(2) says, in part,

     A zero value of who denotes the current process, process group, or
     user.

so what you actually did was you changed the priority of the renice
process itself.  (It then promptly died, so this didn't end up having a
whole lot of effect.)

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B