Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: signals on windows


  • From: Andrew Dunstan <andrew(at)dunslane(dot)net>
  • To: pgsql-hackers-win32 <pgsql-hackers-win32(at)postgresql(dot)org>
  • Subject: Re: signals on windows
  • Date: Fri, 10 Oct 2003 13:37:53 -0400
  • Message-id: <3F86EE71.6050700@dunslane.net> <text/plain>

Merlin Moncure wrote:

It doesn't look like a "signal" is not a kernel primitive on NT, it's a
feature of the CRT implemented in userspace with lower-level OS
primitives.

That is correct.  Signals in the Unix sense of the word do not exist in
win32.  A subset of them was emulated by the C runtime for compatibility
with dos applications.  All real win32 process messaging goes through
messages.
Exception handling, however, is a kernel primitive, and handles some
cases like int/0 that normally would be handled by signals.  Microsoft
hacked the C language to include exception support for this reason.

OK, so the practical question facing me is "am I doing the right thing for signal handling on Windows in initdb.c, or is something else needed?"

cheers

andrew





Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group