Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: Better SIGINFO for fw_update(8)
To:
Mark Kettenis <mark.kettenis@xs4all.nl>
Cc:
Andrew Hewus Fresh <andrew@afresh1.com>, tech@openbsd.org
Date:
Thu, 30 Oct 2025 09:37:51 -0600

Download raw body.

Thread
> So what happens if I interrupt the script with ^C?  Do I end up with
> my terminal in the "stty nokerninfo" state?

trap cleanup EXIT

Hundreds of programs change the tty configuration and restore it upon
interrupt.  Most are written in C.  In sh, it is possible to write programs
which capture exit signalling jus as well as C code.

I don't think this is really a drama.  fw_update is run rarely.  When it
doesn't work well, we want to know why.  I've found previous bugs in here
using sh -x, and that is tiring.