Re: [RFC] [Patch 0/21] Non disruptive application core dumpinfrastructure

From: Suzuki K. Poulose
Date: Tue Dec 14 2010 - 09:59:20 EST


On Tue, 14 Dec 2010 12:54:05 +0200
Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:

> On Tue, Dec 14, 2010 at 03:22:59PM +0530, Suzuki K. Poulose wrote:
> > The interface is provided by a /proc/pid/core file, reading which can give the
>
> What happens when process opens /proc/self/core ?
The current thread will be skipped for freeze(), and all the others will be
frozen.We fill in the register states with 0's for the active threads.

> What happens when process opens /proc/self/core and coredumps before close(2).

Thanks for pointing this out. With the current code, this causes a hang for the
current process, waiting for the other threads to clear. I will think about
a solution to this making use of the mm->core_state information.


Thanks a lot for the review.

Suzuki
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/