X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <CAHWeT-YaTX+dg=Ldf=7s4DfuVwnNFbJSOuZ9oAeCdir+s7x9_g@mail.gmail.com>
References: <1Qoug4-1GulCy0@fwd17.aul.t-online.de>	<CAHWeT-YaTX+dg=Ldf=7s4DfuVwnNFbJSOuZ9oAeCdir+s7x9_g@mail.gmail.com>
Date: Sat, 6 Aug 2011 11:02:45 +0200
Message-ID: <CAEhDDbBbr_EftvgFJOegvTS4VPdjDR2X_tSeFKb=KCtcYqEV3Q@mail.gmail.com>
Subject: Re: mintty --log overwrites existing logfile in place
From: Csaba Raduly <rcsaba@gmail.com>
To: cygwin@cygwin.com
Cc: Christian Franke <Christian.Franke@t-online.de>
Content-Type: text/plain; charset=ISO-8859-1
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Fri, Aug 5, 2011 at 10:38 PM, Andy Koppe  wrote:
> On 4 August 2011 10:57, Christian Franke wrote:
>> The mintty --log option is very useful but opens logfile without O_TRUNC
>> or O_APPEND:
(snip)
>> I would suggest to add O_APPEND.
>
> I'll ponder that. The original intention was O_TRUNC.
>

Ideally it could be made user-selectable.
The effect of O_TRUNC can be manually replicated by deleting the
existing log, but I suspect few would bother; resulting in large log
files.
The effect of o_APPEND can be manually replicated by renaming and
concatenating the log files.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

