Re: SIGCHLD handler in Postgres C function.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SIGCHLD handler in Postgres C function.
Дата
Msg-id 22880.996532800@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: SIGCHLD handler in Postgres C function.  (Bill Studenmund <wrstuden@zembu.com>)
Ответы Re: SIGCHLD handler in Postgres C function.  (Bill Studenmund <wrstuden@zembu.com>)
Re: SIGCHLD handler in Postgres C function.  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bill Studenmund <wrstuden@zembu.com> writes:
> Looking at source on the web, I found:

> kernel/signal.c:1042

> * Note the silly behaviour of SIGCHLD: SIG_IGN means that the
> * signal isn't actually ignored, but does automatic child
> * reaping, while SIG_DFL is explicitly said by POSIX to force
> * the signal to be ignored.

Hmm, interesting.  If you'll recall, the start of this thread was a
proposal to change our backends' handling of SIGCHLD from SIG_IGN to
SIG_DFL (and get rid of explicit tests for ECHILD).  I didn't quite see
why changing the handler should make a difference, but above we seem to
have the smoking gun.

Which kernel, and which version, is the above quote from?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bill Studenmund
Дата:
Сообщение: Re: SIGCHLD handler in Postgres C function.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SIGCHLD handler in Postgres C function.