Re: fork() and dynamically loaded c functions.... - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: fork() and dynamically loaded c functions....
Date
Msg-id 1281497679-sup-708@alvh.no-ip.org
Whole thread Raw
In response to Re: fork() and dynamically loaded c functions....  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: fork() and dynamically loaded c functions....
List pgsql-general
Excerpts from Tom Lane's message of mar ago 10 19:49:18 -0400 2010:

> Offhand the only clean way I can see to launch a child process is to
> fork *and exec something*.

You probably should close any open file descriptors too, just to be
safe.  (Or do we set FD_CLOEXEC on them?)

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: InitDB: Bad system call
Next
From: Tom Lane
Date:
Subject: Re: fork() and dynamically loaded c functions....