Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1731969

Re: [RFC] proc, coredump: add CoreDumping flag to /proc/pid/status

From Alexey Dobriyan <adobriyan@gmail.com>
Newsgroups linux.kernel
Subject Re: [RFC] proc, coredump: add CoreDumping flag to /proc/pid/status
Date 2017-09-14 00:50 +0200
Message-ID <upoDL-4Z2-9@gated-at.bofh.it> (permalink)
References <upoaJ-4P5-5@gated-at.bofh.it> <upoDL-4Z2-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [RFC] proc, coredump: add CoreDumping flag to /proc/pid/status Alexey Dobriyan <adobriyan@gmail.com> - 2017-09-14 00:20 +0200
  Re: [RFC] proc, coredump: add CoreDumping flag to /proc/pid/status Alexey Dobriyan <adobriyan@gmail.com> - 2017-09-14 00:50 +0200

csiph-web