git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 9af34f3) | patch
Use procsignal_sigusr1_handler for auxiliary processes.
2019年11月25日 21:08:53 +0000 (16:08 -0500)
2019年11月25日 21:16:27 +0000 (16:16 -0500)
commit 0d3c3aae3366891f1c3d6bac326070660be36f76
Use procsignal_sigusr1_handler for auxiliary processes.

AuxiliaryProcessMain does ProcSignalInit, so one might expect that
auxiliary processes would need to respond to SendProcSignal, but none
of the auxiliary processes do that. Change them to use
procsignal_sigusr1_handler instead of their own private handlers so
that they do. Besides seeming more correct, this is also less code. It
shouldn't make any functional difference right now because, as far as
we know, there are no current cases where SendProcSignal targets an
auxiliary process, but there are plans to change that in the future.

Andres Freund

Discussion: http://postgr.es/m/20181030051643.elbxjww5jjgnjaxg@alap3.anarazel.de
src/backend/postmaster/bgwriter.c diff | blob | blame | history
src/backend/postmaster/checkpointer.c diff | blob | blame | history
src/backend/postmaster/startup.c diff | blob | blame | history
src/backend/postmaster/walwriter.c diff | blob | blame | history
src/backend/replication/walreceiver.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /