use binary mode on syslog pipe on windows to avoid upsetting chunking protocol

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: use binary mode on syslog pipe on windows to avoid upsetting chunking protocol
Date: 2007-07-30 12:41:38
Message-ID: 46ADDC82.1090502@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


This small patch makes the syslog pipe use binary mode on Windows so
that CRLF translation (and possibly other oddities) don't upset the pipe
chunking protocol. It preserves text mode for the redirected syslog
file, as recently discussed on -hackers, so there should be no visible
change.

If there is no objection I will apply this and backport it to 8.0 shortly.

cheers

andrew

Attachment Content-Type Size
crlf2.patch text/x-patch 2.7 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Gregory Stark 2007-07-30 14:41:39 Export user visible function to make use of convert_to_scalar
Previous Message Alvaro Herrera 2007-07-29 23:17:15 Re: allow CSV quote in NULL