1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Arrange for SIGINT in autovacuum workers to cancel the current table and

continue with the schedule.  Change current uses of SIGINT to abort a worker
into SIGTERM, which keeps the old behaviour of terminating the process.

Patch from ITAGAKI Takahiro, with some editorializing of my own.
This commit is contained in:
Alvaro Herrera
2007-06-29 17:07:39 +00:00
parent c786796d0a
commit 10af02b912
4 changed files with 63 additions and 15 deletions

View File

@ -23,7 +23,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.26 2007/06/07 21:45:59 tgl Exp $
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.27 2007/06/29 17:07:39 alvherre Exp $
*
*-------------------------------------------------------------------------
*/
@ -1008,7 +1008,7 @@ CheckOtherDBBackends(Oid databaseId)
*/
LWLockRelease(ProcArrayLock);
(void) kill(autopid, SIGINT); /* ignore any error */
(void) kill(autopid, SIGTERM); /* ignore any error */
break;
}