mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Allow cancel from client of backend query. Change some int variables
to bool's.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.40 1998/03/02 05:41:53 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.41 1998/05/19 18:05:46 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -409,18 +409,15 @@ pq_sendoob(char *msg, int len)
|
||||
{
|
||||
int fd = fileno(Pfout);
|
||||
|
||||
return (send(fd, msg, len, MSG_OOB));
|
||||
return send(fd, msg, len, MSG_OOB);
|
||||
}
|
||||
|
||||
int
|
||||
pq_recvoob(char *msgPtr, int *lenPtr)
|
||||
pq_recvoob(char *msgPtr, int len)
|
||||
{
|
||||
int fd = fileno(Pfout);
|
||||
int len = 0;
|
||||
|
||||
len = recv(fd, msgPtr + len, *lenPtr, MSG_OOB);
|
||||
*lenPtr = len;
|
||||
return (len);
|
||||
return recv(fd, msgPtr, len, MSG_OOB);
|
||||
}
|
||||
|
||||
/* --------------------------------
|
||||
@@ -523,7 +520,7 @@ pq_async_notify()
|
||||
/* int len = sizeof(msg); */
|
||||
int len = 20;
|
||||
|
||||
if (pq_recvoob(msg, &len) >= 0)
|
||||
if (pq_recvoob(msg, len) >= 0)
|
||||
{
|
||||
/* debugging */
|
||||
printf("received notification: %s\n", msg);
|
||||
|
Reference in New Issue
Block a user