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

Commit753a040

Browse files
committed
Don't set the signal handler for SIGQUIT on Windows. Buildfarm shows that
reinstalling the default signal handler doesn't work as it is on Windows.Presumably core dumps on SIGQUIT are not a problem on Windows, so ratherthan figure out what header files or other changes are required to make itwork, just don't bother.
1 parent52e6371 commit753a040

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎contrib/pg_standby/pg_standby.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.19 2009/03/1819:27:28 heikki Exp $
2+
* $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.20 2009/03/1820:30:35 heikki Exp $
33
*
44
*
55
* pg_standby.c
@@ -463,14 +463,15 @@ sighandler(int sig)
463463
signaled= true;
464464
}
465465

466+
#ifndefWIN32
466467
/* We don't want SIGQUIT to core dump */
467468
staticvoid
468469
sigquit_handler(intsig)
469470
{
470471
signal(SIGINT,SIG_DFL);
471472
kill(getpid(),SIGINT);
472473
}
473-
474+
#endif
474475

475476
/*------------ MAIN ----------------------------------------*/
476477
int
@@ -508,7 +509,9 @@ main(int argc, char **argv)
508509
*/
509510
(void)signal(SIGUSR1,sighandler);
510511
(void)signal(SIGINT,sighandler);/* deprecated, use SIGUSR1 */
512+
#ifndefWIN32
511513
(void)signal(SIGQUIT,sigquit_handler);
514+
#endif
512515

513516
while ((c=getopt(argc,argv,"cdk:lr:s:t:w:"))!=-1)
514517
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp