mirror of
https://github.com/postgres/postgres.git
synced 2026-03-12 21:54:00 -04:00
POSIX sigaction(2) can be told to block a set of signals while a
signal handler executes. Make use of that instead of manually
blocking and unblocking signals in the postmaster's signal handlers.
This should save a few cycles, but more importantly it prevents
recursive invocation of signal handlers when many signals arrive in
close succession. (Assuming that the platform's signal infrastructure
is designed to avoid consuming stack space in that case, but this is
demonstrably true at least on Linux.) The existing code has been seen
to recurse to the point of stack overflow, either in the postmaster
or in a forked-off child.
Back-patch of commit
|
||
|---|---|---|
| .. | ||
| auth.h | ||
| be-fsstubs.h | ||
| crypt.h | ||
| hba.h | ||
| ip.h | ||
| libpq-be.h | ||
| libpq-fs.h | ||
| libpq.h | ||
| md5.h | ||
| pqcomm.h | ||
| pqformat.h | ||
| pqmq.h | ||
| pqsignal.h | ||