mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
getpid/pid cleanup
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.33 1998/01/07 21:03:21 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.34 1998/01/25 05:13:18 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -56,6 +56,7 @@
|
||||
|
||||
#include <postgres.h>
|
||||
|
||||
#include <miscadmin.h>
|
||||
#include <libpq/pqsignal.h>
|
||||
#include <libpq/auth.h>
|
||||
#include <libpq/libpq.h> /* where the declarations go */
|
||||
@@ -515,11 +516,11 @@ pq_regoob(void (*fptr) ())
|
||||
int fd = fileno(Pfout);
|
||||
|
||||
#if defined(hpux)
|
||||
ioctl(fd, FIOSSAIOOWN, getpid());
|
||||
ioctl(fd, FIOSSAIOOWN, MyProcPid);
|
||||
#elif defined(sco)
|
||||
ioctl(fd, SIOCSPGRP, getpid());
|
||||
ioctl(fd, SIOCSPGRP, MyProcPid);
|
||||
#else
|
||||
fcntl(fd, F_SETOWN, getpid());
|
||||
fcntl(fd, F_SETOWN, MyProcPid);
|
||||
#endif /* hpux */
|
||||
pqsignal(SIGURG, fptr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user