[RFC PATCH 04/13] utils/pb-console: Ignore SIGINT
Samuel Mendoza-Jonas
sam at mendozajonas.com
Thu Jun 28 16:41:42 AEST 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 6295295..ad601e2 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.18.0
More information about the Petitboot
mailing list