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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: stderr piping under win32


  • From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
  • To: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>
  • Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers-win32(at)postgresql(dot)org
  • Subject: Re: stderr piping under win32
  • Date: Fri, 30 Jul 2004 14:37:09 +0000
  • Message-id: <410A5D15(dot)7030006(at)pse-consulting(dot)de>

Claudio Natoli wrote:


IIRC, it is because the handles returned by the pipe call are later
select()'d on with other sockets, which is not possible with handles
returned by _pipe.

That's true, select() is not possible on file and pipe handles. To achieve wait-and-timeout, WaitForSingleObject is necessary, which will take a different handle type than _pipe delivers. Well, Tom already made some comments on M$'s standard compliance...

Regards,
Andreas



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group