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

From Tom Lane
Subject Re: fork() and dynamically loaded c functions....
Date
Msg-id 25457.1281497997@sss.pgh.pa.us
Whole thread Raw
In response to Re: fork() and dynamically loaded c functions....  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-general
Alvaro Herrera <alvherre@commandprompt.com> writes:
> You probably should close any open file descriptors too, just to be
> safe.  (Or do we set FD_CLOEXEC on them?)

We don't.  It'd take an extra syscall per open(), which seems like rather
a lot of overhead to deal with a case we aren't even trying to support.

            regards, tom lane

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: fork() and dynamically loaded c functions....
Next
From: Samantha Atkins
Date:
Subject: Re: Is there a way to bypass sql?