callback specifically a logging function when a process being killed on my program on Linux. Look like I need to intercept the system call kill(2). How Can I implement this feature?
I use funchook
https://github.com/metacall/core/blob/develop/source/detours/funchook_detour/source/funchook_detour_impl.c
if you want to intercept syscalls in linux only the kernel provides a standard way for doing that
can't you just wait() on it?
I think that for that you can just capture signals from the start with the standard C library no?
Обсуждают сегодня