[Sheepdog] [PATCH] logger: correct crash_handler output
Christoph Hellwig
hch at infradead.org
Sat Apr 28 16:02:01 CEST 2012
On Sat, Apr 28, 2012 at 09:59:42PM +0800, Liu Yuan wrote:
> On 04/28/2012 09:54 PM, Christoph Hellwig wrote:
>
> > We'd still like to print the pid of the died sheep pid - getppid()
> > should do that work for that.
>
>
> Yes, I tried use getppid() initially, but I found that getppid() always
> return 1 in my distro (ubuntu) and I didn't try to trace why. So I
> simply remove pid, given that some bug in other place or my dirstro goes
> ill-configured.
>
> Maybe I'd better call getppid() here and wait fixes from other place.
Or just set a static pid_t sheep_pid variable before the fork.
More information about the sheepdog
mailing list