From a0659e3e2c79be49feb4aa527d823c71d7bcaf07 Mon Sep 17 00:00:00 2001 From: Marc G. Fournier Date: Thu, 9 Jul 1998 03:29:11 +0000 Subject: From: Tom Lane Making PQrequestCancel safe to call in a signal handler turned out to be much easier than I feared. So here are the diffs. Some notes: * I modified the postmaster's packet "iodone" callback interface to allow the callback routine to return a continue-or-drop-connection return code; this was necessary to allow the connection to be closed after receiving a Cancel, rather than proceeding to launch a new backend... Being a neatnik, I also made the iodone proc have a typechecked parameter list. * I deleted all code I could find that had to do with OOB. * I made some edits to ensure that all signals mentioned in the code are referred to symbolically not by numbers ("SIGUSR2" not "2"). I think Bruce may have already done at least some of the same edits; I hope that merging these patches is not too painful. --- src/include/miscadmin.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/miscadmin.h') diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index 6f4d6f4028f..a6f22432994 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -11,7 +11,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: miscadmin.h,v 1.26 1998/06/09 17:13:06 momjian Exp $ + * $Id: miscadmin.h,v 1.27 1998/07/09 03:28:55 scrappy Exp $ * * NOTES * some of the information in this file will be moved to @@ -42,6 +42,8 @@ extern char *DataDir; extern int MyProcPid; +extern long MyCancelKey; + extern char OutputFileName[]; /* -- cgit v1.2.3