1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

Remove now redundant pgpipe code.

This commit is contained in:
Andrew Dunstan
2012-03-28 23:24:07 -04:00
parent 7313cc0163
commit d2c1740dc2
6 changed files with 10 additions and 124 deletions

View File

@ -391,9 +391,9 @@ SysLoggerMain(int argc, char *argv[])
}
else if (rc > 0 && FD_ISSET(syslogPipe[0], &rfds))
{
bytesRead = piperead(syslogPipe[0],
logbuffer + bytes_in_logbuffer,
sizeof(logbuffer) - bytes_in_logbuffer);
bytesRead = read(syslogPipe[0],
logbuffer + bytes_in_logbuffer,
sizeof(logbuffer) - bytes_in_logbuffer);
if (bytesRead < 0)
{
if (errno != EINTR)
@ -487,7 +487,7 @@ SysLogger_Start(void)
#ifndef WIN32
if (syslogPipe[0] < 0)
{
if (pgpipe(syslogPipe) < 0)
if (pipe(syslogPipe) < 0)
ereport(FATAL,
(errcode_for_socket_access(),
(errmsg("could not create pipe for syslog: %m"))));