summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-06-05 10:01:06 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-12-03 14:39:57 +1100
commitcfd6bf4f7da1ee71a65f57f28912d43ab757b968 (patch)
tree453382ce3c09a643574938455fe6989e2871762d /utils
parentce14ac6dd659cb5e577db1d98abb061e36edbdec (diff)
downloadtalos-petitboot-cfd6bf4f7da1ee71a65f57f28912d43ab757b968.tar.gz
talos-petitboot-cfd6bf4f7da1ee71a65f57f28912d43ab757b968.zip
utils/pb-console: Ignore SIGINT
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>
Diffstat (limited to 'utils')
-rw-r--r--utils/pb-console2
1 files changed, 2 insertions, 0 deletions
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
OpenPOWER on IntegriCloud