diff mbox series

[RFC,04/13] utils/pb-console: Ignore SIGINT

Message ID 20180628064151.13370-5-sam@mendozajonas.com
State RFC
Headers show
Series User support and client permissions | expand

Commit Message

Sam Mendoza-Jonas June 28, 2018, 6:41 a.m. UTC
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@mendozajonas.com>
---
 utils/pb-console | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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