diff options
author | Neil Conway <neilc@samurai.com> | 2004-02-08 22:28:57 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2004-02-08 22:28:57 +0000 |
commit | f06e79525a57ccbf54ae5d0b673cd904ca978d67 (patch) | |
tree | 88e84b43a0eaa593dffa0f454bfef23ce49cd9d2 /src/backend/utils/init/miscinit.c | |
parent | 04e82e500868c3e8582f797d7b54a44fcc750a68 (diff) | |
download | postgresql-f06e79525a57ccbf54ae5d0b673cd904ca978d67.tar.gz postgresql-f06e79525a57ccbf54ae5d0b673cd904ca978d67.zip |
Win32 signals cleanup. Patch by Magnus Hagander, with input from Claudio
Natoli and Bruce Momjian (and some cosmetic fixes from Neil Conway).
Changes:
- remove duplicate signal definitions from pqsignal.h
- replace pqkill() with kill() and redefine kill() in Win32
- use ereport() in place of fprintf() in some error handling in
pqsignal.c
- export pg_queue_signal() and make use of it where necessary
- add a console control handler for Ctrl-C and similar handling
on Win32
- do WaitForSingleObjectEx() in CHECK_FOR_INTERRUPTS() on Win32;
query cancelling should now work on Win32
- various other fixes and cleanups
Diffstat (limited to 'src/backend/utils/init/miscinit.c')
-rw-r--r-- | src/backend/utils/init/miscinit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/utils/init/miscinit.c b/src/backend/utils/init/miscinit.c index 2380cbb9dba..e93dcb8a84c 100644 --- a/src/backend/utils/init/miscinit.c +++ b/src/backend/utils/init/miscinit.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.121 2004/01/27 00:45:26 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.122 2004/02/08 22:28:57 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -32,7 +32,6 @@ #include "catalog/catname.h" #include "catalog/pg_shadow.h" #include "libpq/libpq-be.h" -#include "libpq/pqsignal.h" #include "miscadmin.h" #include "storage/ipc.h" #include "storage/pg_shmem.h" @@ -532,7 +531,7 @@ CreateLockFile(const char *filename, bool amPostmaster, */ if (other_pid != my_pid) { - if (pqkill(other_pid, 0) == 0 || + if (kill(other_pid, 0) == 0 || (errno != ESRCH #ifdef __BEOS__ && errno != EINVAL |