]> git.ozlabs.org Git - petitboot/commitdiff
utils/pb-console: Ignore SIGINT
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 5 Jun 2018 00:01:06 +0000 (10:01 +1000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Mon, 3 Dec 2018 03:39:57 +0000 (14:39 +1100)
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

index 62952959a10b03409f6d8f5bc5de7b67f1d748c4..ad601e2eb879a4871ff93c4380f7240fa44c89b5 100644 (file)
@@ -134,6 +134,8 @@ fi
 # show particularly important messages
 dmesg -n 1
 
+trap '' SIGINT
+
 while :
 do
        $ui $verbose_opt