[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:
Dmitry Goncharov 2022-10-21 19:32:06 -04:00 committed by Paul Smith
parent 5b1ca277ca
commit c2f92c980f

View file

@ -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;