mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-10-23 20:59:55 +00:00
[SV 63236] Fix getloadavg related error message on AIX
On AIX getloadavg keeps errno intact when it fails, resulting in a bogus error message from make. * src/job.c (load_too_high): Reset errno before calling getloadavg.
This commit is contained in:
parent
5b1ca277ca
commit
c2f92c980f
1 changed files with 1 additions and 0 deletions
|
@ -2092,6 +2092,7 @@ load_too_high (void)
|
|||
}
|
||||
|
||||
/* Find the real system load average. */
|
||||
errno = 0;
|
||||
if (getloadavg (&load, 1) != 1)
|
||||
{
|
||||
static int lossage = -1;
|
||||
|
|
Loading…
Reference in a new issue