summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-05-27 14:39:33 +0000
committerBruce Momjian <bruce@momjian.us>2004-05-27 14:39:33 +0000
commit83526ccf06f18ecf251631cd954118ace325cd5e (patch)
tree7b216ce9b02bcf63c6a9f4789de62e37019d7fbb /src
parent6f21f4adaa87f7ba4dedda01a1c392ee472f43c2 (diff)
Cleanup for Win32 pgkill.
Diffstat (limited to 'src')
-rw-r--r--src/backend/port/win32/signal.c3
-rw-r--r--src/include/port.h7
-rw-r--r--src/include/port/win32.h5
3 files changed, 8 insertions, 7 deletions
diff --git a/src/backend/port/win32/signal.c b/src/backend/port/win32/signal.c
index 25786cfdc05..fc0652a5b01 100644
--- a/src/backend/port/win32/signal.c
+++ b/src/backend/port/win32/signal.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/port/win32/signal.c,v 1.2 2004/05/27 13:08:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/port/win32/signal.c,v 1.3 2004/05/27 14:39:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -21,7 +21,6 @@
static CRITICAL_SECTION pg_signal_crit_sec;
static int pg_signal_queue;
-#define PG_SIGNAL_COUNT 32
static pqsigfunc pg_signal_array[PG_SIGNAL_COUNT];
static pqsigfunc pg_signal_defaults[PG_SIGNAL_COUNT];
static int pg_signal_mask;
diff --git a/src/include/port.h b/src/include/port.h
index 1357984afbb..907fb20a43b 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/port.h,v 1.38 2004/05/25 01:00:28 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/port.h,v 1.39 2004/05/27 14:39:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -101,7 +101,12 @@ extern off_t ftello(FILE *stream);
extern int pgpipe(int handles[2]);
extern int piperead(int s, char* buf, int len);
#define pipewrite(a,b,c) send(a,b,c,0)
+
+#define PG_SIGNAL_COUNT 32
+#define kill(pid,sig) pgkill(pid,sig)
+extern int pgkill(int pid, int sig);
#endif
+
extern int pclose_check(FILE *stream);
#if defined(__MINGW32__) || defined(__CYGWIN__)
diff --git a/src/include/port/win32.h b/src/include/port/win32.h
index 851516ba850..c10eb078c4a 100644
--- a/src/include/port/win32.h
+++ b/src/include/port/win32.h
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.24 2004/05/27 13:08:54 momjian Exp $ */
+/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.25 2004/05/27 14:39:33 momjian Exp $ */
/* undefine and redefine after #include */
#undef mkdir
@@ -116,9 +116,6 @@ void pg_queue_signal(int signum);
#define SIG_ERR ((pqsigfunc)-1)
#define SIG_IGN ((pqsigfunc)1)
-#define kill(pid,sig) pgkill(pid,sig)
-extern int pgkill(int pid, int sig);
-
#ifndef FRONTEND
#define pg_usleep(t) pgwin32_backend_usleep(t)
void pgwin32_backend_usleep(long microsec);