From patchwork Thu Nov 22 23:36:21 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: 1002063 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 431G8C5HtTz9s0n for ; Fri, 23 Nov 2018 10:37:47 +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="by9zk9Im"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="IBvTKw/X"; 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 431G8C3SjhzDqSD for ; Fri, 23 Nov 2018 10:37:47 +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="by9zk9Im"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="IBvTKw/X"; 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="by9zk9Im"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="IBvTKw/X"; 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 431G774MTZzDqS4 for ; Fri, 23 Nov 2018 10:36:51 +1100 (AEDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id E722C20DB2; Thu, 22 Nov 2018 18:36:48 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 22 Nov 2018 18:36:48 -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=by9zk 9Imd8qYY2G8+B3B3fY3HkZAV4YIx9/TwvxXTmIQmYNC6bTtALqZcMlC794OGAlTG yy9PVObjEUkpgrYDEM1G8JdN2OVxGhyvlwvC6fGLPATpn2nK+QrSe+sdXpnH7nbJ 0uZw6MLHlJl5cFsaFT2P4IGj5MMi5P6kH5qVP6pmLmz8gr5wOfk9s9A/+eRX7d/u A/F903+0USu9IpGbvqhQDyae7KdySZRTg7YtK4tip8sANEit6Op+rzocr7ikU4aw cvF9XO0Oy4eh/3ChbT9HwwlvkDDyd6phaezYkQzU0aGMia1UEaz0Xu/bMqXbe2/4 Qq1YOZvpoAZl0hCDQ== 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=IBvTKw/X tdiOE8x9yXJVdMev8gb57y2LfPW2WpTe4O9ASfwHmi12DKlbuScXsSU8ILIxnGXC yYDFV6jgDFmhELAuFaI+J2Y9r6kwtICu/HfN2WnVESlpzTSkCp24PVPjzdrmMRHT TUueXOeKm6srYhk4vDhVuM6fQCux8BI+SB1fhGJv9GUs3L6FtQnQSHmNX0vcQx9u dIc2STH/A85rNmM4sPyttIMETBVMB0GsKgfUE81veGa67x7pB2VRzkAtrxM8Z6X/ nWt+nhnY2j9TomG1mPt/8r0sZgonL9UfnmPoVMKIYVcz29sGapUzHu81FWd/gLGk P1B8vwCtSyYQ/Q== 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 8605D102E0; Thu, 22 Nov 2018 18:36:47 -0500 (EST) From: Samuel Mendoza-Jonas To: petitboot@lists.ozlabs.org Subject: [PATCH 04/13] utils/pb-console: Ignore SIGINT Date: Fri, 23 Nov 2018 10:36:21 +1100 Message-Id: <20181122233630.6303-5-sam@mendozajonas.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181122233630.6303-1-sam@mendozajonas.com> References: <20181122233630.6303-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