bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #63236] Fix getloadavg related error message.


From: Dmitry Goncharov
Subject: [bug #63236] Fix getloadavg related error message.
Date: Tue, 18 Oct 2022 21:34:30 -0400 (EDT)

Follow-up Comment #1, bug #63236 (project make):

On aix (actually possible on any system) getloadavg fails and keeps errno
intact.
This results in a bogus error message from make.
The patch resets errno before calling getloadavg.

$ cat makefile
MAKEFLAGS:=-Rr
all: 1.x 2.x 3.x 4.x

%.x:; sleep 10
makefile::;
$ ~/src/gmake/make-4.3.90/i64/make -j -l0.2
sleep 10
make: cannot enforce load limit: getloadavg: A file or directory in the path
name does not exist.
sleep 10
sleep 10
sleep 10
$
$

# with this patch
$ ~/src/gmake/make-4.3.90/i64/make -j -l0.2
sleep 10
make: cannot enforce load limits on this operating system
sleep 10
sleep 10
sleep 10
$


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63236>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]