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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Meskes | 2003-11-12 08:42:57 | pgsql-server/src/interfaces/ecpg/ecpglib Tag: ... |
Previous Message | Bruce Momjian | 2003-11-12 04:14:34 | pgsql-server/doc Tag: REL7_4_STABLE FAQ_MSWIN |