strace

It traces system calls/signals - https://en.wikipedia.org/wiki/Strace