You need to make all variable access (including libpq, I think) in the
handler threadsafe. The control handler will execute on a different
thread from the main one (see

One way to do this could be to have the handler just set an event or a
variable, and then poll this one in the main thread. For more
information about these issues, see recent threads on signal handling on
pgsql-hackers-win32 (which deals with the server, but much the same


> -----Original Message-----
> From: Ludek Finstrle [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, January 14, 2004 1:03 PM
> Subject: [PATCHES] WIN32 psql Ctrl+C support
> Hello,
>   I write Ctrl+C support for Win32 psql client. I create diff 
> againist CVS snapshoted today.
> Comments are welcome
> Luf

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?


Reply via email to