From: | Giles Lean <giles(at)nemeton(dot)com(dot)au> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: SIGCHLD handler in Postgres C function. |
Date: | 2001-08-04 00:56:57 |
Message-ID: | 26009.996886617@nemeton.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-08-04 19:35:29 | Re: patch for contrib/intarray (current CVS) |
Previous Message | Tom Lane | 2001-08-03 22:55:46 | Re: Rule flag in gram.y |