Re: C function - other process - Mailing list pgsql-sql

From Tom Lane
Subject Re: C function - other process
Date
Msg-id 12255.1114198795@sss.pgh.pa.us
Whole thread Raw
In response to C function - other process  (Jakub Woźny <kubaw@o2.pl>)
Responses Re: C function - other process
List pgsql-sql
Jakub Woźny <kubaw@o2.pl> writes:
> I wrote a simple function:

>     signal(SIGCHLD,SIG_IGN);
>     switch(fork())

This will NOT work.  It WILL corrupt your database.  You do not get to
randomly introduce new processes into the backend set.
        regards, tom lane


pgsql-sql by date:

Previous
From: Jakub Woźny
Date:
Subject: C function - other process
Next
From: Michael Fuhr
Date:
Subject: Re: C function - other process