]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Log: Add handlers for all common signals
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Sat, 12 Jun 2021 00:10:09 +0000 (19:10 -0500)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Sat, 12 Jun 2021 00:10:09 +0000 (19:10 -0500)
commit6ab2951597a12ddfc1769a8ecbb61b72f8073ec1
treee8c9904c41479114780258816334b79af85e8922
parentd2b82e6e46e8a9d89b3dcb0ddc154be83b7da864
Log: Add handlers for all common signals

These should be safe. They just print the signal number, the stack
trace, then restore the original behavior.

The only problem is I can't do the same with SIGKILL nor SIGSTOP,
but I suppose if SIGKILL were the problem, the kernel would have left
something in the logs. And SIGSTOP would have left the process alive.

Intended for #49.
src/log.c