Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5181d37

Browse files
committed
Remove no-longer-needed fcntl call (I'm not sure it *ever* did anything
useful, in fact).
1 parent d1c9633 commit 5181d37

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
3030
* Portions Copyright (c) 1994, Regents of the University of California
3131
*
32-
* $Id: pqcomm.c,v 1.118 2001/07/11 19:03:07 tgl Exp $
32+
* $Id: pqcomm.c,v 1.119 2001/08/05 01:22:16 tgl Exp $
3333
*
3434
*-------------------------------------------------------------------------
3535
*/
@@ -401,10 +401,9 @@ StreamConnection(int server_fd, Port *port)
401401
}
402402

403403
#ifdef SCO_ACCEPT_BUG
404-
405404
/*
406405
* UnixWare 7+ and OpenServer 5.0.4 are known to have this bug, but it
407-
* shouldn't hurt it catch if for all of them.
406+
* shouldn't hurt to catch it for all versions of those platforms.
408407
*/
409408
if (port->raddr.sa.sa_family == 0)
410409
port->raddr.sa.sa_family = AF_UNIX;
@@ -438,9 +437,6 @@ StreamConnection(int server_fd, Port *port)
438437
}
439438
}
440439

441-
/* reset to non-blocking */
442-
fcntl(port->sock, F_SETFL, 1);
443-
444440
return STATUS_OK;
445441
}
446442

0 commit comments

Comments
 (0)