From mboxrd@z Thu Jan 1 00:00:00 1970 From: n.borisov.lkml@gmail.com (Nikolay Borisov) Date: Thu, 09 Jul 2015 10:08:19 +0300 Subject: is there a way to register for processes state changes from userspace ? In-Reply-To: References: Message-ID: <559E1DE3.2060806@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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... > Thanks. 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.