diff mbox series

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

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

Commit Message

Sam Mendoza-Jonas Nov. 22, 2018, 11:36 p.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 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