Re: atexit_callback can be a net negative - Mailing list pgsql-hackers

From Andres Freund
Subject Re: atexit_callback can be a net negative
Date
Msg-id 20140307143626.GC22909@awork2.anarazel.de
Whole thread Raw
In response to atexit_callback can be a net negative  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: atexit_callback can be a net negative
List pgsql-hackers
On 2014-03-07 00:03:48 -0500, Tom Lane wrote:
> In the bug thread I proposed making atexit_callback check whether getpid()
> still matches MyProcPid.

What are you proposing to do in that case? This is only one of the
failure cases of forking carelessly, right?
I think the only appropriate thing would be to make as much noise as
possible in that case, which is probably something like writing a
message to stderr, and then abort().

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: atexit_callback can be a net negative
Next
From: Craig Ringer
Date:
Subject: Re: Row-security on updatable s.b. views