bugmake - Bugs: bug #51200, Improvement suggestion: listen to...


bug #51200: Improvement suggestion: listen to signals to adjust number of jobs

Submitted by:  None
Submitted on:  Wed 07 Jun 2017 06:43:43 PM UTC  
Severity:  3 - Normal Item Group:  Enhancement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  SCM Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 20 Nov 2017 05:58:31 AM UTC, comment #1:

As the directory structure recently changed in git, would you like me to send an updated patch?

regards Henrik

Henrik Carlqvist <henca>
Wed 07 Jun 2017 06:43:43 PM UTC, original submission:

Many times after starting make I have wished that I started it with more parallel jobs than I did. A few time I have also wished that I started make with fewer parallel jobs.

The attached patch allows you to send SIGUSR2 to your top level make process to add one more parallel job.

Once a SIGUSR2 is received the functionality of SIGUSR1 also changes from toggling debug output to decrease the number of jobs by 1. No running job will be killed, but when the next target is finished one less job will be started again.

If make was started with parallel jobs SIGUSR2 will immediately increase the number of jobs with one. If make was started without -j SIGUSR2 will not cause make to work in parallel until the current target is finished.

The patch was written against sources from git, but also works with latest stable version 4.2.1.

I hope that you will find my patch useful and that it somehow will make it
into upcoming stable releases of make.

Please feel free to discuss improvements of the patch, I have subscribed to the bug-make mailing list.



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

Attach Files:

Attached Files
file #40877:  signal_num_jobs3.patch added by None (3KiB - 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 henca (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-06-07 None Attached File- => Added signal_num_jobs3.patch, #40877

    Back to the top

    Powered by Savane 3.3