Re: on_exit_reset fails to clear DSM-related exit actions - Mailing list pgsql-hackers

From Peter LaDow
Subject Re: on_exit_reset fails to clear DSM-related exit actions
Date
Msg-id CAN8Q1EeH5ihcopaDzmdpLAWi0p=9ZSt1cZrzGw4VSO6WnFTVNg@mail.gmail.com
Whole thread Raw
In response to Re: on_exit_reset fails to clear DSM-related exit actions  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: on_exit_reset fails to clear DSM-related exit actions  (Peter LaDow <petela@gocougs.wsu.edu>)
List pgsql-hackers
On Fri, Mar 7, 2014 at 12:17 PM, Andres Freund <andres@2ndquadrant.com> wrote:
> Forking twice is ok as well, as long as you just use _exit() after the
> fork. The thing is that you shouldn't run any nontrivial code in the
> fork, as long as you're connected to the original environment (fd's,
> memory mappings and so forth).

Just to be clear, what do you mean by "nontrivial code"?  Do you mean
C library calls, other than fork/exec/_exit?

Pete



pgsql-hackers by date:

Previous
From: Peter LaDow
Date:
Subject: Re: on_exit_reset fails to clear DSM-related exit actions
Next
From: Alvaro Herrera
Date:
Subject: Re: [PATCH] Store Extension Options