Re: Allow signal handlers to optionally use SA_SIGINFO information?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Allow signal handlers to optionally use SA_SIGINFO information?
Дата
Msg-id 24699.1415631017@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Allow signal handlers to optionally use SA_SIGINFO information?  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: Allow signal handlers to optionally use SA_SIGINFO information?  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> Posix provides information about the source of the signal when using
> SA_SIGINFO style handlers via si_code/si_pid. That information has been
> available for a *long* while
> (c.f. http://pubs.opengroup.org/onlinepubs/7908799/xsh/signal.h.html).

That does not mean that it exists on all the platforms we support;
Windows in particular is likely to be an issue.

I concur with Heikki that you're probably solving this at the wrong
end anyway, since the next question you'll be asking is *why* did
process X send that signal.
        regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: tracking commit timestamps
Следующее
От: Pankaj Bagul
Дата:
Сообщение: Fwd: How parser works and to add keyword to keywords.h