URL:
  <http://savannah.gnu.org/bugs/?51159>

                 Summary: pselect jobserver stuck at read does not reap
children
                 Project: make
            Submitted by: kvho
            Submitted on: Fri 02 Jun 2017 12:44:13 PM CEST
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.2.1
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

When using parallel recurse make, several child make processes will  be
waiting in pselect.
When some make is writing a token in the pipe, several of these processes will
leave the pselect, and trying to read the pipe.
Only 1 will actually get the token.  All others will be blocked in the read.
Eventually tokens will be written to the pipe, unblocking these make
processes.

Solution : make the pipe non blocking, in order for all the processes that
miss the token to call pselect again.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 02 Jun 2017 12:44:13 PM CEST  Name: patch  Size: 902B   By: kvho

<http://savannah.gnu.org/bugs/download.php?file_id=40839>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51159>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to