Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 8/7/84; site ucbvax.ARPA Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!ihnp4!ucbvax!anton From: anton@ucbvax.ARPA (Jeff Anton) Newsgroups: net.unix-wizards,net.bugs.4bsd Subject: Re: automatic renice in 4.1 bsd? Message-ID: <2506@ucbvax.ARPA> Date: Fri, 12-Oct-84 18:57:45 EDT Article-I.D.: ucbvax.2506 Posted: Fri Oct 12 18:57:45 1984 Date-Received: Sat, 13-Oct-84 08:17:13 EDT References: <170@terak.UUCP> Reply-To: anton@ucbvax.UUCP (Jeff Anton) Distribution: net Organization: University of California at Berkeley Lines: 15 Summary: If I remember 4.1 correctly it will move the nice of a process from 0 to +4 after 10 cpu minutes. This only applies to non-root and nice = 0 processes. Csh however has a bug in the way it handles the 'nice' internal command. Csh attempts to set the nice absolutely by doing the nice +40 then nice -(20-resultnice). This however, fails if you are not root and will set your shell to nice +19 (The real maximum). The fix is pretty easy. You should go into csh source and change these nices into a call to the new setpriority. (I think it's in 4.1) Disclaimer: I don't work on BSD, I just know a few pieces of it. (bugs) Jeff Anton anton@berkeley.arpa ucbvax!anton