Re: Allow signal handlers to optionally use SA_SIGINFO information?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Allow signal handlers to optionally use SA_SIGINFO information?
Date: 2014-11-10 14:50:17
Message-ID: 24699.1415631017@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund <andres(at)2ndquadrant(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pankaj Bagul 2014-11-10 15:01:06 Fwd: How parser works and to add keyword to keywords.h
Previous Message Robert Haas 2014-11-10 13:55:10 Re: tracking commit timestamps