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

Re: [PATCHES] Proposed replacement for pipe under Win32

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>
Cc: "'pgsql-patches(at)postgresql(dot)org'" <pgsql-patches(at)postgresql(dot)org>,PostgreSQL Win32 port list <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: [PATCHES] Proposed replacement for pipe under Win32
Date: 2004-01-09 04:58:27
Message-ID: 200401090458.i094wRs12483@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers-win32pgsql-patches
I have applied your new pipe.c file, the macros you listed (with
modification), and the configure glue to make it work.

Patch and new file attached and applied.

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

Claudio Natoli wrote:
> 
> To go in src/port/ directory.
> 
> This is to allow the handles returned by pipe to be used in select() calls
> (which Win32 doesn't allow with the native pipe() call), thereby obviating
> the need for reworking of the select() mechanisms in pgstat.c.
> 
> Additionally, something of the sort would be required at the top of pgstat.c
> 
> #ifdef WIN32
> #define pipe(a)		pgpipe(a)
> #define write(a,b,c)	send(a,b,c,0)
> #define read(a,b,c) 	recv(a,b,c,0)
> #endif
> 
> For reference, see this thread:
> http://archives.postgresql.org/pgsql-hackers/2003-12/msg00650.php

-- 
  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-patches by date

Next:From: Claudio NatoliDate: 2004-01-09 05:01:07
Subject: Re: fork/exec patch: pre-CreateProcess finalization
Previous:From: Bruce MomjianDate: 2004-01-09 04:46:27
Subject: Re: fork/exec patch: pre-CreateProcess finalization

pgsql-hackers-win32 by date

Next:From: Magnus HaganderDate: 2004-01-09 08:42:55
Subject: Re: Win32 signal code - first try
Previous:From: Tom LaneDate: 2004-01-09 00:59:26
Subject: Re: fork/exec patch: pre-CreateProcess finalization

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