]> granicus.if.org Git - postgresql/commit
Fix single-user mode so that interrupts (particularly SIGTERM and
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Jul 2007 01:15:14 +0000 (01:15 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 9 Jul 2007 01:15:14 +0000 (01:15 +0000)
commit9e09e3b15eb2673c96a2a3f92133311bba0e949c
tree670c4f4282a64a51a36b0d30a3b602d63ccf9540
parent9b619679a8c9f57817c4e0009c6e5f7f9981a336
Fix single-user mode so that interrupts (particularly SIGTERM and
SIGQUIT) will be recognized and processed while waiting for input,
rather than only after something has been typed.  Also make SIGQUIT
do the same thing as SIGTERM in single-user mode, ie, do a normal
shutdown and exit.  Since it's relatively easy to provoke SIGQUIT
from the keyboard, people may try that instead of control-D, and we'd
rather this leads to orderly shutdown.  Per report from Leon Mergen
and subsequent discussion.
src/backend/tcop/postgres.c