postgresql/src/backend/postmaster
Alvaro Herrera bf2617981c Fix various bugs in postmaster SIGKILL processing
Clamp the minimum sleep time during immediate shutdown or crash to a
minimum of zero, not a maximum of one second.  The previous code could
result in a negative sleep time, leading to failure in select() calls.

Also, on crash recovery, reset AbortStartTime as soon as SIGKILL is sent
or abort processing has commenced instead of waiting until the startup
process completes.  Reset AbortStartTime as soon as SIGKILL is sent,
too, to avoid doing that repeatedly.

Per trouble report from Jeff Janes on
CAMkU=1xd3=wFqZwwuXPWe4BQs3h1seYo8LV9JtSjW5RodoPxMg@mail.gmail.com

Author: MauMau
2013-10-05 23:52:04 -03:00
..
Makefile Allow background workers to be started dynamically. 2013-07-16 13:02:15 -04:00
autovacuum.c Rename various "freeze multixact" variables 2013-09-16 15:47:31 -03:00
bgworker.c Fix compiler warning in WaitForBackgroundWorkerStartup(). 2013-09-19 13:00:17 -04:00
bgwriter.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
checkpointer.c pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
fork_process.c pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
pgarch.c pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
pgstat.c Be more wary of unwanted whitespace in pgstat_reset_remove_files(). 2013-08-19 19:36:04 -04:00
postmaster.c Fix various bugs in postmaster SIGKILL processing 2013-10-05 23:52:04 -03:00
startup.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
syslogger.c Emit a log message if output is about to be redirected away from stderr. 2013-08-13 15:24:52 -04:00
walwriter.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00