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


Groups > linux.kernel > #1731962 > unrolled thread

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

Started byAlexey Dobriyan <adobriyan@gmail.com>
First post2017-09-14 00:20 +0200
Last post2017-09-14 00:50 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  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

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

FromAlexey Dobriyan <adobriyan@gmail.com>
Date2017-09-14 00:20 +0200
SubjectRe: [RFC] proc, coredump: add CoreDumping flag to /proc/pid/status
Message-ID<upoaJ-4P5-5@gated-at.bofh.it>
> 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" ?

[toc] | [next] | [standalone]


#1731969

FromAlexey Dobriyan <adobriyan@gmail.com>
Date2017-09-14 00:50 +0200
Message-ID<upoDL-4Z2-9@gated-at.bofh.it>
In reply to#1731962
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.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web