From: Joe Buehler <jbuehler@hekimian.com>
Subject: Re: portable implementation of load-average
Date: Wed, 22 Sep 2004 09:59:18 -0400 [thread overview]
Message-ID: <cis0fo$d20$1@sea.gmane.org> (raw)
In-Reply-To: <jwvd60e4ep7.fsf-monnier+emacs@gnu.org>
Stefan Monnier wrote:
> You probably want to use `call-process' here instead, so as to avoid running
> `sh' (running `uptime' is already making your `load-average' much slower
> than the C version, so I think it's important to try and limit the inflicted
> pain).
Like I said, I'm not a LISP programmer -- it's all yours, feel free to
change what you want.
The only way I currently use it is as part of (display-time), so I don't
need any caching myself -- it runs once a minute as is.
> BTW, is /usr/bin/uptime setgid 0 on those systems, or does it use some other
> method to get the info (a method that Emacs could maybe use)?
It is not setgid for linux and solaris, it is setgid for the others. Whether emacs
works as is for linux and solaris I don't know, but I presume it does not
work for the other OS's -- definitely not for AIX 4.3.
--
Joe Buehler
prev parent reply other threads:[~2004-09-22 13:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-22 12:34 portable implementation of load-average Joe Buehler
2004-09-22 13:37 ` Stefan Monnier
2004-09-22 13:59 ` Joe Buehler [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='cis0fo$d20$1@sea.gmane.org' \
--to=jbuehler@hekimian.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.