Received: by 10.223.185.116 with SMTP id b49csp3010453wrg; Sun, 18 Feb 2018 11:45:31 -0800 (PST) X-Google-Smtp-Source: AH8x2248otdscjc/78OYy9gC8Rg2jE/3plnb4hFFjCjBZC+UqV6QeILMf4fHuHdtrJnhG72skZsh X-Received: by 10.101.65.9 with SMTP id w9mr10487580pgp.214.1518983130895; Sun, 18 Feb 2018 11:45:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518983130; cv=none; d=google.com; s=arc-20160816; b=jAcKH3J+clu8Xao+n63DllSMR/BzF5bIOGoMu7sfWAabmchULtHhukOktJN4/GpkH6 ag2Mr2xnhf8ACmDQEuD7fsl7NhGXLQJ0Nb+vPwsaUJKV/fOB+OkrZtxfpuSs+1WpYc/D TNCihvLX9Ds8l+pbNkh8yK70wV5PAB0d0Ww2mbTi8uZTEUaNajxkC26iR8+jzQyV0o2v Zqn6xlxknluLYnkq4WueTdBUaPmMBLMPN1B+vkkt74iZOCewCeMZRmNx7REOa8RzoxKl RXTMzxkqGCBNoiugjVtrCu/L3IEtu4Cil3DuUCfYwa8R+4I1VzfgC7xzWEq1fRirf0oJ Gddg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=8uBWl//sz9M6BqS1iDNtE6a62zkJSbQRStWqkikYO90=; b=UlnWzYL6yMUesSTSOTapzdRA79GnouQGJgD+QqQk1TcjuptJAI9Fm5ZNP9CfbnWkEO henjT+FsyiyQmamt2Mc7SbDHvQLxG5KA+d+F/GHxDx1y3BxOIL9rIC7jAS/EkA64Zl5E Yu43rkByjp4+WYYnz6/UVt3u9U+ij+eidZCLfeVZneTXInaKzRi/KVeCqZ8IR6ef270Y oGPlNpZtIDIUxFyDmIb9Yhj8tf+qv74ddKvpZuE8uyhIT1Rp7GXqgeI33vSezbS7WgnM 5FOxL/THcjWHfs0MPuUoggZzztzcJRkhZcHMKoEkH4xFM4KtWLJqfglDwY1biIPIoqXp SxnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t134si2592902pgc.664.2018.02.18.11.45.16; Sun, 18 Feb 2018 11:45:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751590AbeBRToi (ORCPT + 99 others); Sun, 18 Feb 2018 14:44:38 -0500 Received: from asavdk3.altibox.net ([109.247.116.14]:44624 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751383AbeBRToh (ORCPT ); Sun, 18 Feb 2018 14:44:37 -0500 Received: from ravnborg.org (126.158-248-196.customer.lyse.net [158.248.196.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 9EF2F20031; Sun, 18 Feb 2018 20:44:34 +0100 (CET) Date: Sun, 18 Feb 2018 20:44:33 +0100 From: Sam Ravnborg To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Michal Marek , Ulf Magnusson , Randy Dunlap , "Luis R . Rodriguez" , linux-kernel@vger.kernel.org, Marc Herbert Subject: Re: [PATCH 1/2] kconfig: remove check_stdin() Message-ID: <20180218194433.GB29324@ravnborg.org> References: <1518069400-7037-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1518069400-7037-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=W9cWqyek c=1 sm=1 tr=0 a=ddpE2eP9Sid01c7MzoqXPA==:117 a=ddpE2eP9Sid01c7MzoqXPA==:17 a=kj9zAlcOel0A:10 a=6apBCMZNcEVXj91zlXAA:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 08, 2018 at 02:56:39PM +0900, Masahiro Yamada wrote: > Except silentoldconfig, valid_stdin is 1, so check_stdin() is no-op. > > oldconfig and silentoldconfig work almost in the same way except that > the latter generates additional files. Both ask users for input for > new symbols. > > I do not know why only silentoldconfig requires stdio be tty. The general idea was to error out if stdout was not a tty and kconfig wanted to prompt the user for anything. So we avoided having a kconfig that would hang waiting for user inputs when the user could not see that anything was prompted for. The actual implementation may not follow this today as many seems not to be aware of this little trick. Sam