On Mon, Mar 08, 2004 at 09:12:52PM +1100, Claudio Natoli wrote: > > Hi all, > > Was just discussing the issues related to the above off list with Magnus: > http://archives.postgresql.org/pgsql-hackers-win32/2004-03/msg00041.php > > Whilst we can think of a number of work-arounds (the simplest being a > suggestion by Magnus: set a flag, like APCcalled, to false before the > select() call, and repeat the select() if APCcalled == true on return from > select), we were wondering if having socket calls inside signal handlers was > a good idea in any case?
Is this a win32 only thing, or is it more general? OpenBSD for instance has some documentation on which functions are safe to be called from a signal handler, and socket operations aren't part of it. See for isntance their manpages about signal and sigaction. Kurt ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])