Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit83526cc

Browse files
committed
Cleanup for Win32 pgkill.
1 parent6f21f4a commit83526cc

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/2713:08:50 momjian Exp $
9+
* $PostgreSQL: pgsql/src/backend/port/win32/signal.c,v 1.3 2004/05/2714:39:29 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -21,7 +21,6 @@
2121
staticCRITICAL_SECTIONpg_signal_crit_sec;
2222
staticintpg_signal_queue;
2323

24-
#definePG_SIGNAL_COUNT 32
2524
staticpqsigfuncpg_signal_array[PG_SIGNAL_COUNT];
2625
staticpqsigfuncpg_signal_defaults[PG_SIGNAL_COUNT];
2726
staticintpg_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
externintpgpipe(inthandles[2]);
102102
externintpiperead(ints,char*buf,intlen);
103103
#definepipewrite(a,b,c)send(a,b,c,0)
104+
105+
#definePG_SIGNAL_COUNT 32
106+
#definekill(pid,sig) pgkill(pid,sig)
107+
externintpgkill(intpid,intsig);
104108
#endif
109+
105110
externintpclose_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/2713:08:54 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.25 2004/05/2714: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
#defineSIG_ERR ((pqsigfunc)-1)
117117
#defineSIG_IGN ((pqsigfunc)1)
118118

119-
#definekill(pid,sig) pgkill(pid,sig)
120-
externintpgkill(intpid,intsig);
121-
122119
#ifndefFRONTEND
123120
#definepg_usleep(t) pgwin32_backend_usleep(t)
124121
voidpgwin32_backend_usleep(longmicrosec);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp