]> granicus.if.org Git - postgresql/commit
Restructure backend SIGINT/SIGTERM handling so that 'die' interrupts
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 14 Jan 2001 05:08:17 +0000 (05:08 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 14 Jan 2001 05:08:17 +0000 (05:08 +0000)
commit36839c192706f5abd75bdcb02b6a7cace14ce108
tree3022631b1208e1227684db86c12cbba7da15f611
parent027f144e390afa6f189270e8c2a2a56c0a88f646
Restructure backend SIGINT/SIGTERM handling so that 'die' interrupts
are treated more like 'cancel' interrupts: the signal handler sets a
flag that is examined at well-defined spots, rather than trying to cope
with an interrupt that might happen anywhere.  See pghackers discussion
of 1/12/01.
24 files changed:
src/backend/access/nbtree/nbtinsert.c
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/bootstrap/bootstrap.c
src/backend/commands/analyze.c
src/backend/commands/copy.c
src/backend/commands/vacuum.c
src/backend/executor/execProcnode.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/s_lock.c
src/backend/storage/ipc/ipc.c
src/backend/storage/ipc/spin.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/proc.c
src/backend/tcop/postgres.c
src/backend/utils/error/elog.c
src/backend/utils/init/globals.c
src/include/access/xlog.h
src/include/miscadmin.h
src/include/storage/ipc.h
src/include/storage/proc.h
src/include/tcop/tcopprot.h
src/include/utils/elog.h
src/interfaces/ecpg/preproc/pgc.l