Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!wuarchive!uunet!mcsun!unido!uni-koeln!uvax!se From: se@ikp.uni-koeln.de (Stefan Esser) Newsgroups: comp.sys.hp Subject: Re: setpriority() in hpux? Message-ID: Date: 2 Sep 90 18:07:35 GMT References: Sender: news@rrz.uni-koeln.de (USENET News System) Distribution: comp Organization: Institut of Nuclear Physics, University of Cologne, F. R. Germany Lines: 19 In-Reply-To: beau@over..caltech.edu's message of 1 Sep 90 21:02:27 GMT I have written a setpriority function that works well with top 2.5 on our hp9000s835. It patches the process's niceness in the proc area. I included all the security checks normally performed by the system call. Because it requires _write_-access to the kernel, top has to be installed setgid 'kmem' with /dev/kmem mode 660. (But I don't see how that could break security.) To port the setpriority code to your hp9000s300 should't be hard. The file is named '/pub/misc/top_hp.2.5.tar.Z' on 'ftp.rrz.uni-koeln.de'. The file '/pub/misc/top2.5.tar.Z' is the original version (without renice). You should be able to isolate my patches with a diff of these two files. Stefan Esser -- Stefan Esser, Institute of Nuclear Physics, University of Cologne, W. Germany se@ikp.Uni-Koeln.DE [134.95.192.9]