Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150225205138.GM23507@brightrain.aerifal.cx>
Date: Wed, 25 Feb 2015 15:51:38 -0500
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] getloadavg: use sysinfo() instead of /proc/loadavg

On Tue, Feb 24, 2015 at 09:44:07PM +0300, Alexander Monakov wrote:
> Based on a patch by Szabolcs Nagy.
> ---
> This is a followup to a recent IRC conversation.  getloadavg() doesn't really
> need to open a file in /proc, since a sysinfo() syscall should suffice.  Based
> on a patch by nsz, slightly adjusted.  Return value of sysinfo() call is not
> checked, since the only documented failure is with EFAULT.

Thanks. Committed.

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.