Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 83526cc

Browse files
committed
Cleanup for Win32 pgkill.
1 parent 6f21f4a commit 83526cc

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/backend/port/win32/signal.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/src/backend/port/win32/signal.c,v 1.2 2004/05/27 13:08:50 momjian Exp $
9+
* $PostgreSQL: pgsql/src/backend/port/win32/signal.c,v 1.3 2004/05/27 14:39:29 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -21,7 +21,6 @@
2121
static CRITICAL_SECTION pg_signal_crit_sec;
2222
static int pg_signal_queue;
2323

24-
#define PG_SIGNAL_COUNT 32
2524
static pqsigfunc pg_signal_array[PG_SIGNAL_COUNT];
2625
static pqsigfunc pg_signal_defaults[PG_SIGNAL_COUNT];
2726
static int pg_signal_mask;

src/include/port.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/include/port.h,v 1.38 2004/05/25 01:00:28 momjian Exp $
9+
* $PostgreSQL: pgsql/src/include/port.h,v 1.39 2004/05/27 14:39:32 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -101,7 +101,12 @@ extern off_t ftello(FILE *stream);
101101
extern int pgpipe(int handles[2]);
102102
extern int piperead(int s, char* buf, int len);
103103
#define pipewrite(a,b,c) send(a,b,c,0)
104+
105+
#define PG_SIGNAL_COUNT 32
106+
#define kill(pid,sig) pgkill(pid,sig)
107+
extern int pgkill(int pid, int sig);
104108
#endif
109+
105110
extern int pclose_check(FILE *stream);
106111

107112
#if defined(__MINGW32__) || defined(__CYGWIN__)

src/include/port/win32.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.24 2004/05/27 13:08:54 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.25 2004/05/27 14:39:33 momjian Exp $ */
22

33
/* undefine and redefine after #include */
44
#undef mkdir
@@ -116,9 +116,6 @@ void pg_queue_signal(int signum);
116116
#define SIG_ERR ((pqsigfunc)-1)
117117
#define SIG_IGN ((pqsigfunc)1)
118118

119-
#define kill(pid,sig) pgkill(pid,sig)
120-
extern int pgkill(int pid, int sig);
121-
122119
#ifndef FRONTEND
123120
#define pg_usleep(t) pgwin32_backend_usleep(t)
124121
void pgwin32_backend_usleep(long microsec);

0 commit comments

Comments
 (0)