All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Dobriyan <adobriyan@gmail.com>
To: Roman Gushchin <guro@fb.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC] proc, coredump: add CoreDumping flag to /proc/pid/status
Date: Thu, 14 Sep 2017 01:46:43 +0300	[thread overview]
Message-ID: <20170913224643.GA1741@avx2> (raw)
In-Reply-To: <20170913222159.GA19288@castle>

On Wed, Sep 13, 2017 at 03:21:59PM -0700, Roman Gushchin wrote:
> On Thu, Sep 14, 2017 at 01:15:26AM +0300, Alexey Dobriyan wrote:
> > > To provide an ability to detect if a process is in the state of
> > > being coreduped, we can expose a boolean CoreDumping flag
> > > in /proc/pid/status.
> > 
> > Or add "State: C" ?
> 
> A program in such state can also sleep and run, so it's not
> a state in terms of process states.

Well, maybe something will break from seeing unknown process state.

Regardless, symlink /proc/$PID/coredump pointing to either "0" or "1"
is faster than open+read+parse+close.

  reply	other threads:[~2017-09-13 22:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-13 22:15 [RFC] proc, coredump: add CoreDumping flag to /proc/pid/status Alexey Dobriyan
2017-09-13 22:21 ` Roman Gushchin
2017-09-13 22:46   ` Alexey Dobriyan [this message]
2017-09-13 23:07     ` Roman Gushchin
  -- strict thread matches above, loose matches on Subject: below --
2017-09-07 11:17 Roman Gushchin
2017-09-13 22:05 ` Roman Gushchin
2017-09-14 22:44 ` Roman Gushchin

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=20170913224643.GA1741@avx2 \
    --to=adobriyan@gmail.com \
    --cc=guro@fb.com \
    --cc=linux-kernel@vger.kernel.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.