From patchwork Wed Nov 28 04:20:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Mendoza-Jonas X-Patchwork-Id: 1004176 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 434SBQ3mr0z9s3Z for ; Wed, 28 Nov 2018 15:20:46 +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="iE1ApiP4"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="GrePuKZP"; 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 434SBQ1j3dzDqgs for ; Wed, 28 Nov 2018 15:20:46 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=mendozajonas.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mendozajonas.com header.i=@mendozajonas.com header.b="iE1ApiP4"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="GrePuKZP"; dkim-atps=neutral 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.28; helo=out4-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="iE1ApiP4"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="GrePuKZP"; dkim-atps=neutral Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 434SB95QrmzDqgC for ; Wed, 28 Nov 2018 15:20:33 +1100 (AEDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 1B9B022A45; Tue, 27 Nov 2018 23:20:31 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 27 Nov 2018 23:20:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= mendozajonas.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=fm1; bh=r38ADd7r8IGrG2ETqQgm8TKSGUabe9yJdiltNvr/wSs=; b=iE1Ap iP4y1lEa8N/CeOhPw8UvTt4k9yei4kV2S4eikhfs1nIgG/JLDwLn+lkIPiqzTv5k /99UcGyoo8t5uYHbmmVtOQsCYDCx18/DGlU9yS4vwJMMB7BCDtQ7fAdn2Th1xdIR vtAV37BObukQAPlYi5F1yFvR1y4R04SFb5uT2hnjEIIlPzBP6Vns2uL73ghRnl9y iGQ0j59BINDsDMXUiIk6gmK04Ohm2XM2r8dtkLf8QQtQmJvnlhoOMOld8OipfefK cnH2IRD5wcw+xoTViNh6L44ijphfNOMpglq4o7/VNts6VhloNFXLG2J5XOOGYthT AId6mayk0dAzofOfA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=r38ADd7r8IGrG2ETqQgm8TKSGUabe9yJdiltNvr/wSs=; b=GrePuKZP cHH0v9CsdJgRPuZ9r7w80fGtk3l4fVF7EvErhj7JOoLIOJIP/RR/nyCbomCmOc16 kuBuUlYLvOiyDh9qWhLAyPSCZvn6u6gkfURLbdws/QjqU+TRCmqIIeIreq8W1Xni SH1+lpRRjOadMvszhJXh6K5Ced1qttD5nmVFK6rvVvz6JOC0LkvOItpTwuD/J/nZ EVaouirLChiWc84RMZ4neGVYpZBHaJFhlA9qO4JLZNUbWuGvDqXmFEf0PtCr966X unwYhHH4+BWUmu3cOw/k74XVQuAv7IjE4MpQeZgBQbo6i/dRjrR9owC+CqRQL4bQ 7owcu8nsBjcUOw== X-ME-Sender: X-ME-Proxy: Received: from v4.ozlabs.ibm.com (unknown [122.99.82.10]) by mail.messagingengine.com (Postfix) with ESMTPA id ADD80102F2; Tue, 27 Nov 2018 23:20:29 -0500 (EST) From: Samuel Mendoza-Jonas To: petitboot@lists.ozlabs.org Subject: [PATCH v2 04/13] utils/pb-console: Ignore SIGINT Date: Wed, 28 Nov 2018 15:20:03 +1100 Message-Id: <20181128042012.25916-5-sam@mendozajonas.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181128042012.25916-1-sam@mendozajonas.com> References: <20181128042012.25916-1-sam@mendozajonas.com> 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" Trap and ignore SIGINT to avoid a SIGINT intended for petitboot-nc also exiting the parent pb-console script. Signed-off-by: Samuel Mendoza-Jonas --- utils/pb-console | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/pb-console b/utils/pb-console index 62952959..ad601e2e 100644 --- a/utils/pb-console +++ b/utils/pb-console @@ -134,6 +134,8 @@ fi # show particularly important messages dmesg -n 1 +trap '' SIGINT + while : do $ui $verbose_opt