From patchwork Mon Apr 1 02:17:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Mendoza-Jonas X-Patchwork-Id: 1072182 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44Xbmn5bVTz9sRW for ; Mon, 1 Apr 2019 13:26:01 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mendozajonas.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="FnjlMKBA"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="attDA/c8"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 44Xbmn0ZFWzDqMs for ; Mon, 1 Apr 2019 13:26:01 +1100 (AEDT) X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=mendozajonas.com (client-ip=66.111.4.25; helo=out1-smtp.messagingengine.com; envelope-from=sam@mendozajonas.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=mendozajonas.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="FnjlMKBA"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="attDA/c8"; dkim-atps=neutral X-Greylist: delayed 502 seconds by postgrey-1.36 at bilbo; Mon, 01 Apr 2019 13:25:50 AEDT Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 44XbmZ0VmjzDqMH for ; Mon, 1 Apr 2019 13:25:49 +1100 (AEDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 3F182213F5; Sun, 31 Mar 2019 22:17:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 31 Mar 2019 22:17:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= mendozajonas.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=fm2; bh=KgDW5r008bmIi A2PC7EA/erG4ovpc3WQfikq3FUx0ZA=; b=FnjlMKBAYqfKk6tnsjJk87FTa+iY0 +8xFvBYDjpV1cp3n7PESCDb2Hm++If97r/mI4B3H88BUGG8xOaXSU334ZevLkEl0 Z8pXFrSWu4AQ+w9rGL6Oa9ZFSeRwqlRhW7kq6eM5KQP8PuILTQrDr/mL3gvLxQ2y 9Ixuh7xuB7pEIHYxvdJQPBfcLKsKvqs6ahbU2HNZKpmpsSHrcB1wSpZfTh64HJ+s Gr6U0WFLTKAGjgxERPNSmdXNriYnhTBBmhxyfBztlwjyJ0hO1iwrn/Bnuy5hfptd bKfU9WbINKnOnSRpzi+LwQWSBt5PV2ykXPjcyc+7gzT3BJgHhUSxkGm8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=KgDW5r008bmIiA2PC 7EA/erG4ovpc3WQfikq3FUx0ZA=; b=attDA/c85Sl/k3FHNX47qBiJXhBLefAa5 wP2Y+iMELCBtzzuir52bi+v6Wbo/0xeY64WQDFgSxHplmPXYl4s3kVw37Ng9myd9 ydAGlcudnRpTqjiqvPJTh3EOg/NZCGa9+OgYfV0kcDULLz3B1F+Cf2YeyAkdpgJl R5QxoRn4KbklLeh5wYBTtA7kairhulVobgXqdkPiGz7unH5vNkDt3lVnDP6jPoRY EE9NUXKUy4fr1VjPiMS+4BroSA6myfZePqCnAb06ii+ME8NDKXa65k9eYb/gMAky nFJXCRd6DmvDlnm8L/IgD+DTu8xUEdCI5pa5+aPtPPJwu6eVeRlag== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrleefgdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpefurghmuhgvlhcuofgvnhguohiirgdqlfhonhgrshcuoehsrghmsehm vghnughoiigrjhhonhgrshdrtghomheqnecukfhppeduvddvrdelledrkedvrddutdenuc frrghrrghmpehmrghilhhfrhhomhepshgrmhesmhgvnhguohiirghjohhnrghsrdgtohhm necuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from v4.ozlabs.ibm.com (unknown [122.99.82.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 70B9D100E5; Sun, 31 Mar 2019 22:17:20 -0400 (EDT) From: Samuel Mendoza-Jonas To: petitboot@lists.ozlabs.org Subject: [PATCH] utils/pb-console: Use -m to run shell in own process group Date: Mon, 1 Apr 2019 13:17:10 +1100 Message-Id: <20190401021710.18047-1-sam@mendozajonas.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Samuel Mendoza-Jonas Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Use -m to have the shell spawned by pb-console run it its own process group, allowing commands such as Ctrl-C (SIGINT) to behave as expected rather than killing the shell. Signed-off-by: Samuel Mendoza-Jonas --- utils/pb-console | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/pb-console b/utils/pb-console index 5ba98cc4..ab5eaaa4 100644 --- a/utils/pb-console +++ b/utils/pb-console @@ -141,5 +141,5 @@ while : do $ui $verbose_opt reset - $shell + $shell -m done