[bug #63236] Fix getloadavg related error message.

2022-10-24 Thread Paul D. Smith
Update of bug #63236 (project make):

  Status:None => Fixed  
 Open/Closed:Open => Closed 
Operating System:None => POSIX-Based
   Fixed Release:None => SCM
   Triage Status:None => Small Effort   

___

Follow-up Comment #2:

Thanks Dmitry; applied.


___

Reply to this item at:

  

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




[bug #63236] Fix getloadavg related error message.

2022-10-18 Thread Dmitry Goncharov
Additional Item Attachment, bug #63236 (project make):

File name: sv63236.diff   Size:0 KB




___

Reply to this item at:

  

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




[bug #63236] Fix getloadavg related error message.

2022-10-18 Thread Dmitry Goncharov
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:

  

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




[bug #63236] Fix getloadavg related error message.

2022-10-18 Thread Dmitry Goncharov
URL:
  

 Summary: Fix getloadavg related error message.
 Project: make
   Submitter: dgoncharov
   Submitted: Wed 19 Oct 2022 01:32:41 AM UTC
Severity: 3 - Normal
  Item Group: Bug
  Status: None
 Privacy: Public
 Assigned to: None
 Open/Closed: Open
 Discussion Lock: Any
   Component Version: SCM
Operating System: None
   Fixed Release: None
   Triage Status: None


___

Follow-up Comments:


---
Date: Wed 19 Oct 2022 01:32:41 AM UTC By: Dmitry Goncharov 
.







___

Reply to this item at:

  

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