Article View: gnu.emacs.bug
Article #98967Re: display-time's load average no longer works for us in Emacs 18.56
From: David J. MacKenzie
Date: Wed, 23 Jan 1991 07:15
Date: Wed, 23 Jan 1991 07:15
25 lines
2057 bytes
2057 bytes
In article <9101212126.AA19792@ata.twinsun.com> eggert@twinsun.com (Paul Eggert) writes: GNU Emacs 18.56 revamped the implementation of display-time so that the load average is no longer displayed on our hosts. In 18.55, load average snarfing was done in etc/loadst, a setgid program that had permission to read /dev/kmem. In 18.56, load average snarfing is done inside Emacs itself, and since ordinary users can't read /dev/kmem, (load-average) yields (0 0 0) and therefore M-x display-time no longer displays a load avarage. I was wondering how that would be handled when I saw the 18.56 beta lisp code. I assumed that emacs itself would be made setgid kmem, and contain appropriate code to write files with the correct gid. It's hard to believe none of the beta testers noticed this problem; could it be that none of them use display-time? Most sites have a /vmunix and /dev/kmem that are not world readable. Perhaps the simplest workaround that does not add any setgid programs is for etc/wakeup to invoke /usr/ucb/uptime instead of just printing ``Wake up!''; display-time could then just parse uptime's output. Might as well put back some version of loadst in that case, so you can control the format. loadst might work on more systems than have uptime, too, though I don't know that for sure. -- David J. MacKenzie <djm@eng.umd.edu> <djm@ai.mit.edu>
Technical Details
Message-ID:
<DJM.91Jan23021547@bleen.eng.umd.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!ENG.UMD.EDU!djmShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,9480e95ec29914da,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-01-22 23:15:47 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!ENG.UMD.EDU!djm From: djm@ENG.UMD.EDU (David J. MacKenzie) Newsgroups: gnu.emacs.bug Subject: Re: display-time's load average no longer works for us in Emacs 18.56 Message-ID: <DJM.91Jan23021547@bleen.eng.umd.edu> Date: 23 Jan 91 07:15:47 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: Project GLUE, University of Maryland Lines: 25 Approved: bug-gnu-emacs@prep.ai.mit.edu