Re: on_exit_reset fails to clear DSM-related exit actions

From: Peter LaDow <petela(at)gocougs(dot)wsu(dot)edu>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: on_exit_reset fails to clear DSM-related exit actions
Date: 2014-03-07 20:55:45
Message-ID: CAN8Q1EeH5ihcopaDzmdpLAWi0p=9ZSt1cZrzGw4VSO6WnFTVNg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Mar 7, 2014 at 12:17 PM, Andres Freund <andres(at)2ndquadrant(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2014-03-07 20:56:49 Re: [PATCH] Store Extension Options
Previous Message Peter LaDow 2014-03-07 20:51:33 Re: on_exit_reset fails to clear DSM-related exit actions