OSDN Git Service

Merge three existing ways of signaling postmaster from child processes,
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Nov 2001 19:55:31 +0000 (19:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 4 Nov 2001 19:55:31 +0000 (19:55 +0000)
commitfb5f1b2c13c0c1265f2d1244312fee256629a187
tree840259e62246dd3cbfd8fc16af1174540b071262
parent5f067722bfd8b28946f5654f99f3971d33df12a3
Merge three existing ways of signaling postmaster from child processes,
so that only one signal number is used not three.  Flags in shared
memory tell the reason(s) for the current signal.  This method is
extensible to handle more signal reasons without chewing up even more
signal numbers, but the immediate reason is to keep pg_pwd reloads
separate from SIGHUP processing in the postmaster.
Also clean up some problems in the postmaster with delayed response to
checkpoint status changes --- basically, it wouldn't schedule a checkpoint
if it wasn't getting connection requests on a regular basis.
src/backend/access/transam/xlog.c
src/backend/commands/user.c
src/backend/postmaster/postmaster.c
src/backend/storage/ipc/Makefile
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/pmsignal.c [new file with mode: 0644]
src/backend/storage/ipc/sinvaladt.c
src/include/storage/pmsignal.h [new file with mode: 0644]