Re: pipe chunking vs Windows - Mailing list pgsql-hackers

From korry.douglas
Subject Re: pipe chunking vs Windows
Date
Msg-id 46ACFEFA.4000807@enterprisedb.com
Whole thread Raw
In response to pipe chunking vs Windows  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: pipe chunking vs Windows  ("korry.douglas" <korry.douglas@enterprisedb.com>)
List pgsql-hackers
> I have not yet succeeded in turning this behaviour off (_setmode() 
> didn't seem to affect it). If we can't find a way to turn it off, the 
> only solution short of abandoning its use on Windows that I can think 
> of is to translate LF on input to something unlikely like 0x1C and 
> then translate it back when we read it from the pipe.
Did you _setmode() the pipe, _setmode() stderr, or both?  (And did you 
try before or after calling dup2()?).

It looks like the Win CRT implementation of dup2() copues the "mode" 
from the pipe that you've created into stderr. 
         -- Korry


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: pipe chunking vs Windows
Next
From: Andrew Dunstan
Date:
Subject: Re: pipe chunking vs Windows