Re: Don't use the deprecated and insecure PQcancel in our frontend tools anymore - Mailing list pgsql-hackers

From Zsolt Parragi
Subject Re: Don't use the deprecated and insecure PQcancel in our frontend tools anymore
Date
Msg-id CAN4CZFN-=Am6qh26GPjzZWsQCm+VqE=byrwr=Q1vUVqS0gTCNA@mail.gmail.com
Whole thread
In response to Re: Don't use the deprecated and insecure PQcancel in our frontend tools anymore  ("Jelte Fennema-Nio" <postgres@jeltef.nl>)
List pgsql-hackers
Hello

+void
+setup_cancel_handler(void (*signal_callback) (void),
+                     void (*thread_callback) (void))
+{
+...
+    create_cancel_thread();
+    pqsignal(SIGINT, CancelSignalHandler);
+#endif
+}

Maybe this should have a doc comment explaining that this function
should only be called once (or alternatively, create_cancel_thread
should have a guard against repeated callers)?



pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: SQL/JSON json_table plan clause
Next
From: Heikki Linnakangas
Date:
Subject: Re: Don't use the deprecated and insecure PQcancel in our frontend tools anymore