1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-10 17:42:29 +03:00

Remove fork()/exec() and only do fork(). Small cleanups.

This commit is contained in:
Bruce Momjian
1998-05-29 17:00:34 +00:00
parent 2d4c6cab96
commit 212c905e2c
19 changed files with 172 additions and 144 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.42 1998/05/27 18:32:01 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.43 1998/05/29 17:00:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -564,8 +564,8 @@ static char sock_path[MAXPGPATH + 1] = "";
void
StreamDoUnlink()
{
if (sock_path[0])
unlink(sock_path);
Assert(sock_path[0]);
unlink(sock_path);
}
int
@@ -628,6 +628,9 @@ StreamServerPort(char *hostName, short portName, int *fdP)
return (STATUS_ERROR);
}
if (family == AF_UNIX)
on_exitpg(StreamDoUnlink, NULL);
listen(fd, SOMAXCONN);
/*