Re: bug in SignalSomeChildren - Mailing list pgsql-hackers

From Tom Lane
Subject Re: bug in SignalSomeChildren
Date
Msg-id 12099.1292869606@sss.pgh.pa.us
Whole thread Raw
In response to Re: bug in SignalSomeChildren  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: bug in SignalSomeChildren  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
>>> Attaching gdb to either the startup process or a WAL sender causes
>>> PostmasterIsAlive to return false, resulting in a near-immediate exit.
>>> �Seems pretty stupid for attaching gdb to change the return value of
>>> getppid() but it seems like that must be what's happening.

> Can we add a develop option to force use of the kill(0) method?

How will that avoid needing to have an honest answer from getppid()?
Without that you can't know what to issue kill() against.

Seems like the correct path here is to complain to gdb and/or BSD
upstreams about this misbehavior.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: MingW and MiniDumps
Next
From: Robert Haas
Date:
Subject: Re: bug in SignalSomeChildren