Make all signal handler functions async-signal-safe
authorschwarze <schwarze@openbsd.org>
Thu, 2 Sep 2021 11:19:02 +0000 (11:19 +0000)
committerschwarze <schwarze@openbsd.org>
Thu, 2 Sep 2021 11:19:02 +0000 (11:19 +0000)
commitd373ec5f7908419c871e1250ec59cfbd5d8e5f94
treec6104c379612109d52bb47aad649c76031a4afac
parenta9ae77714561952300195517895b75b21c3701fa
Make all signal handler functions async-signal-safe
by deleting the redundant "killersig" struct member
and using the existing sig_atomic_t cl_sigterm variable instead.
While here, garbage collect the h_hup() signal handler
which is essentially identical to h_term().
This also gets rid of the last #define & #undef in cl_main.c.

OK martijn@, and also tested by Tim <trondd at kagu hyphen tsuchi dot com>.
usr.bin/vi/cl/cl.h
usr.bin/vi/cl/cl_funcs.c
usr.bin/vi/cl/cl_main.c
usr.bin/vi/cl/cl_read.c