Newsgroups: comp.sys.sgi.misc,comp.parallel.pvm
From: olson@anchor.esd.sgi.com (Dave Olson)
Subject: Re: once again, nice, setpriority, etc
Organization: Silicon Graphics, Inc.  Mountain View, CA
Date: 5 Jul 1994 01:47:41 GMT
Message-ID: <2vae3t$b3q@gazette.esd.sgi.com>

js9s@uvahev.phys.Virginia.EDU (jg_sun) writes:
| Well, wired thing happens. I can use /etc/renice to set
| the nice level of a process, which is execd by another 
| process.  However, I can not change the nice level inside
| the process by calling setprority or nice, it always
| has the same nice level of the parent process no matter 
| what I do.   I was wondering if this had anything
| to do with the SYSV process group scheme,  and did
| a setsid(), and it did not help either.  How did
| the SGI people do the renice? 

You can't increase the priority (lower the nice level) if you
aren't root...  You *do* check for errors in your system calls,
and use perror or strerror to show them, right?

The man page is pretty clear about this also.
--

The most beautiful things in the world are              |   Dave Olson
those from which all excess weight has been             |   Silicon Graphics
removed.  -Henry Ford                                   |   olson@sgi.com

