Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2866199ybk; Tue, 12 May 2020 09:59:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLTl+UWJNWKWNaHwmFOLUwb7sabocj5ExOT+J8515OD8k+xe/xFZXGRi1Giah8mQn3id3O X-Received: by 2002:a17:906:aad8:: with SMTP id kt24mr895268ejb.54.1589302778085; Tue, 12 May 2020 09:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589302778; cv=none; d=google.com; s=arc-20160816; b=EGcXJxDN7zu/iXg+CDwbN8iILtZnEPzCXZDea7eKdKt9SF90OyHhDEm3eAarJv1uGd xRynLld6I70FwuC9uxdidEDZ+qI5Yb2BMJCyWV85LT3mBQ0UuNoM87VX5wx/1wBldAZK Eo5+On7Avi8ycwgbELwqGNJs2NVrtumEgDP+i7n+t1tB482vQplgg/W9Ee85WPPtn3Kj 4Mnjzp/60U4J4iIsTBJBZ70Ygex3YVJlgqOBD89OMRYaNsnC8bEcZY2o/s9mBgyZJgHx 4VDYIfOgSXQKVoTnrldGr748ZVvO7y4T/cSj1P2uRSBzR0cR2SmIa6+oH8vFaphjE856 Hb/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:reply-to:from :subject:message-id; bh=ABmmwT9VdJsD4CbOfjm8uIB+3/1IJWbUAk1GmZ2DCJE=; b=dNZCQckkAKjwSxnJJIl4T6SpIOQq7jlE1vIwPMmsPaxHNKzJnYtSH2Vl5kbB8W0qnY hjPdTPViPrIT9yaCXKzyZu3xWDMMgahAqG5J7zJmNEEoG2l7M0ZtsGCMB5ioay9lRGJW T0c0XUmusHJfPRNf4NnesZoFIZxyGj3snzKLC5GdYXB4sF4xaZ2C8ECjZX2IzP/gSJsJ Va94J8ZuXc1P7K44uhiin2c/PsufaJ6KbSrkr2tLeo+HPZaIdwdK5UwRMSlWVBl8OuGL yc75mkmEWEH7zhZnkoKE6SFbKdVmYXj336sE7v1m6l0tFtzlVk4vxpJlvTWiJNBkDmHh I9Qw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c22si6546458edx.33.2020.05.12.09.59.15; Tue, 12 May 2020 09:59:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726055AbgELQz1 (ORCPT + 99 others); Tue, 12 May 2020 12:55:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbgELQz0 (ORCPT ); Tue, 12 May 2020 12:55:26 -0400 Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97FA7C061A0C for ; Tue, 12 May 2020 09:55:26 -0700 (PDT) Received: from fencepost.gnu.org ([2001:470:142:3::e]:45184) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYYBe-0002bG-7Z; Tue, 12 May 2020 12:55:22 -0400 Received: from pool-98-118-0-140.bstnma.fios.verizon.net ([98.118.0.140]:55126 helo=pdslaptop.home) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jYYBc-0005EL-AV; Tue, 12 May 2020 12:55:20 -0400 Message-ID: Subject: Re: I disabled more compiler warnings.. From: Paul Smith Reply-To: psmith@gnu.org To: David Laight , 'Linus Torvalds' Cc: 'Arnd Bergmann' , 'Masahiro Yamada' , 'Linux Kernel Mailing List' Date: Tue, 12 May 2020 12:55:19 -0400 In-Reply-To: <464ab7c2d9e144718e4a3135a41f3056@AcuMS.aculab.com> References: <8320f29ca61146fc985083621685ac95@AcuMS.aculab.com> <0ff4860b4202a6ef3bb3b29912d083d471e1cc1d.camel@gnu.org> <90909f30775744b89d1a0c40265779d9@AcuMS.aculab.com> <5564c992dfeb40adbc3e6f6a29e43d2e@AcuMS.aculab.com> <73dace5aca21bee09ce12aa8dcfd50daa2cd6051.camel@gnu.org> <464ab7c2d9e144718e4a3135a41f3056@AcuMS.aculab.com> Organization: GNU's Not UNIX! Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-05-12 at 15:04 +0000, David Laight wrote: > I think there were some sub-makes that were started with make > instead of $(MAKE) so ended up creating a new job pipe. Oh, yes, that will do it. > Doesn't it do blocking reads with SIGCHLD enabled? No, because it's racy (by itself). > (or hopefully ppoll() to avoid the race) GNU make uses pselect(), on systems that support it. On systems that don't support pselect() it uses a trick I described in another email: we dup() the FD, read() on the dup, then in the SIGCHLD handler we close() the dup. > Another option is for the 'parent' make to return (or not acquire) > a job token for $(MAKE) commands. It just feels cleaner to me to have the parent simply always take the token, and leave it up to the child to put it back if appropriate, rather than the parent putting it back. Having the parent not acquire a token at all won't work; without limiting sub-makes it means you might have 100's of them running at the same time, even with -j2 or whatever. > Or, require the sub-make acquire a token in order to exit. > Then it can free the token when every job terminates. I'm not sure I follow that?