is there a way to register for processes state changes from userspace ?
n.borisov.lkml at gmail.com
Thu Jul 9 03:08:19 EDT 2015
On 07/09/2015 09:39 AM, Ramon Fried wrote:
> at the specific PID procfs directory.
> Is there a better way to achieve that ? Something like netlink notifications for subscribed processes will be great...
If your process is abruptly killed then there is no way for the process
to tell you that (it's dead after all). Just implement a simple time-out
mechanism in the spirit of ping.
More information about the Kernelnewbies