diff mbox series

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

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

Commit Message

Sam Mendoza-Jonas Nov. 28, 2018, 4:20 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 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