diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2009-12-16 22:55:34 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2009-12-16 22:55:34 +0000 |
commit | b63b967a7e68c0f157958406aaa78285ba6e5dd7 (patch) | |
tree | 45ea441e6bf8d02a747359d7007cd8daf303df2b /src/backend/tcop/postgres.c | |
parent | 52fc0075ab794136f12847971068cbddba297fe4 (diff) | |
download | postgresql-b63b967a7e68c0f157958406aaa78285ba6e5dd7.tar.gz postgresql-b63b967a7e68c0f157958406aaa78285ba6e5dd7.zip |
If there is no sigdelset(), define it as a macro.
This removes some duplicate code that recreated the identical workaround
when the newer signal API is missing.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 71ae42dab70..884748c9b12 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.576 2009/12/15 04:57:47 rhaas Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.577 2009/12/16 22:55:33 petere Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -3292,11 +3292,7 @@ PostgresMain(int argc, char *argv[], const char *username) if (IsUnderPostmaster) { /* We allow SIGQUIT (quickdie) at all times */ -#ifdef HAVE_SIGPROCMASK sigdelset(&BlockSig, SIGQUIT); -#else - BlockSig &= ~(sigmask(SIGQUIT)); -#endif } PG_SETMASK(&BlockSig); /* block everything except SIGQUIT */ |