Re: SIGCHLD handler in Postgres C function. - Mailing list pgsql-hackers

From Giles Lean
Subject Re: SIGCHLD handler in Postgres C function.
Date
Msg-id 26009.996886617@nemeton.com.au
Whole thread Raw
In response to Re: SIGCHLD handler in Postgres C function.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> You'll recall the ECHILD exception was installed by Tatsuo after seeing
> problems on Solaris.  Evidently Solaris uses the auto-reap behavior too.
> 
> I'm somewhat surprised that HPUX does not --- it tends to follow its
> SysV heritage when there's a conflict between that and BSD practice.
> Guess they went BSD on this one.

If the SysV behaviour of automatically reaping child processes is
required on HP-UX the handler for SIGCHLD can be set to SIG_IGN.
When the handler is SIG_DFL the signal will be ignored but child
processes won't be reaped automatically.  This is the same behaviour
that Stevens describes for SysVr4.  ("Advanced Programming in the Unix
Environment", section 10.7.)

What different implementations of system(3) with different settings of
SIGCHLD is another can of worms, and one I've not investigated. :-)

Regards,

Giles









pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Rule flag in gram.y
Next
From: "Steve Howe"
Date:
Subject: Cursor queries & fetches