postgresql/contrib/worker_spi
Tom Lane 214c7a4f0b Fix some more bugs in signal handlers and process shutdown logic.
WalSndKill was doing things exactly backwards: it should first clear
MyWalSnd (to stop signal handlers from touching MyWalSnd->latch),
then disown the latch, and only then mark the WalSnd struct unused by
clearing its pid field.

Also, WalRcvSigUsr1Handler and worker_spi_sighup failed to preserve
errno, which is surely a requirement for any signal handler.

Per discussion of recent buildfarm failures.  Back-patch as far
as the relevant code exists.
2014-02-01 16:21:23 -05:00
..
Makefile Allow background workers to be started dynamically. 2013-07-16 13:02:15 -04:00
worker_spi--1.0.sql Allow discovery of whether a dynamic background worker is running. 2013-08-28 14:08:13 -04:00
worker_spi.c Fix some more bugs in signal handlers and process shutdown logic. 2014-02-01 16:21:23 -05:00
worker_spi.control Allow background workers to be started dynamically. 2013-07-16 13:02:15 -04:00