Skip site navigation (1) Skip section navigation (2)

Re: pgsql-server/src/backend/postmaster postmaster.c

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql-server/src/backend/postmaster postmaster.c
Date: 2003-11-12 04:14:58
Message-ID: 200311120414.hAC4EwO11622@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-committers
I have added this to my personal TODO list.  Thanks.

---------------------------------------------------------------------------

Neil Conway wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > We define the variable only on Win32/BeOS.  Any ideas on how to do this
> > better?
> 
> int
> set_non_blocking(some_type socket)
> {
>     int ret;
> 
> #ifdef SOME_UNIX_PLATFORM
>     ret  = ...;
> #else
> 
> #ifdef SOME_WINDOWS_PLATFORM
>     ret = ...;
> #else
>     ret = ...;
> #endif
> 
>     return ret;
> }
> 
> This function shouldn't be in the critical path for anything, so ISTM
> that we can hide this platform-specific ugliness inside a function
> without any harm.
> 
> -Neil
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-committers by date

Next:From: Michael MeskesDate: 2003-11-12 08:42:57
Subject: pgsql-server/src/interfaces/ecpg/ecpglib Tag: ...
Previous:From: Bruce MomjianDate: 2003-11-12 04:14:34
Subject: pgsql-server/doc Tag: REL7_4_STABLE FAQ_MSWIN

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group