mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Move non-blocking code into its own /port file, for code clarity.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.267 2004/01/09 02:02:43 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.268 2004/03/10 21:12:47 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -50,11 +50,6 @@
|
||||
#include "libpq/ip.h"
|
||||
#include "mb/pg_wchar.h"
|
||||
|
||||
/* For FNCTL_NONBLOCK */
|
||||
#if defined(WIN32) || defined(__BEOS__)
|
||||
long ioctlsocket_ret=1;
|
||||
#endif
|
||||
|
||||
#define PGPASSFILE ".pgpass"
|
||||
|
||||
/* fall back options if they are not specified by arguments or defined
|
||||
@ -779,7 +774,7 @@ update_db_info(PGconn *conn)
|
||||
static int
|
||||
connectMakeNonblocking(PGconn *conn)
|
||||
{
|
||||
if (FCNTL_NONBLOCK(conn->sock) < 0)
|
||||
if (!set_noblock(conn->sock))
|
||||
{
|
||||
char sebuf[256];
|
||||
|
||||
|
Reference in New Issue
Block a user