bugmake - Bugs: bug #63236, Fix getloadavg related error...

 
 

bug #63236: Fix getloadavg related error message.

Submitter:  Dmitry Goncharov <dgoncharov>
Submitted:  Wed 19 Oct 2022 01:32:41 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.4 Operating System:  POSIX-Based
Fixed Release:  4.4 Triage Status:  Small Effort
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 Oct 2022 06:52:26 AM UTC, comment #2: 

Thanks Dmitry; applied.

Paul D. Smith <psmith>
Group administrator
Wed 19 Oct 2022 01:34:30 AM UTC, comment #1: 

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
$

Dmitry Goncharov <dgoncharov>
Wed 19 Oct 2022 01:32:41 AM UTC, original submission:  

.

Dmitry Goncharov <dgoncharov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #53880:  sv63236.diff added by dgoncharov (671B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by dgoncharov (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-24 psmith StatusNone Fixed
        Open/ClosedOpen Closed
        Operating SystemNone POSIX-Based
        Fixed ReleaseNone 4.4
        Triage StatusNone Small Effort
    2022-10-19 dgoncharov Attached File- Added sv63236.diff, #53880

    Back to the top

    Powered by Savane 3.13-da57.
    Corresponding source code