All of lore.kernel.org
 help / color / mirror / Atom feed
From: n.borisov.lkml@gmail.com (Nikolay Borisov)
To: kernelnewbies@lists.kernelnewbies.org
Subject: is there a way to register for processes state changes from userspace ?
Date: Thu, 09 Jul 2015 10:08:19 +0300	[thread overview]
Message-ID: <559E1DE3.2060806@gmail.com> (raw)
In-Reply-To: <AM2PR02MB06893194BB48D05D7868A838E8900@AM2PR02MB0689.eurprd02.prod.outlook.com>



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.

  reply	other threads:[~2015-07-09  7:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-09  6:39 is there a way to register for processes state changes from userspace ? Ramon Fried
2015-07-09  7:08 ` Nikolay Borisov [this message]
2015-07-09  9:19   ` Jason Ball

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=559E1DE3.2060806@gmail.com \
    --to=n.borisov.lkml@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.