chiark / gitweb /
Block SIGINT and SIGTERM while emitting a pulse.
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 17 Nov 2018 12:33:06 +0000 (12:33 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 17 Nov 2018 12:33:06 +0000 (12:33 +0000)
commit7a34f4ee55c5b53a20acb5183ddec6faac3a7fb4
tree4cf928e15fa80a6fb51c6262eb695dd87d7fc9ea
parent9179cc6c753512cac8536d81773723cf67bac605
Block SIGINT and SIGTERM while emitting a pulse.

That should ensure that we emit a full pulse and don't either truncate
it or leave the GPIO line high because of those signals.  SIGTERM will
catch a normal shutdown by systemd etc, SIGINT the manual killing of a
foreground process.
clunk.c