[PATCH v2 04/13] utils/pb-console: Ignore SIGINT

Samuel Mendoza-Jonas sam at mendozajonas.com
Wed Nov 28 15:20:03 AEDT 2018


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 <sam at mendozajonas.com>
---
 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
-- 
2.19.1



More information about the Petitboot mailing list