X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Thu, 04 Aug 2011 11:57:20 +0200 Reply-To: "Christian Franke" To: cygwin AT cygwin DOT com Subject: mintty --log overwrites existing logfile in place From: "Christian Franke" Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Message-ID: <1Qoug4-1GulCy0@fwd17.aul.t-online.de> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com The mintty --log option is very useful but opens logfile without O_TRUNC or O_APPEND: mintty-1.0.1/child.c: // Open log file if any if (*cfg.log) { log_fd = open(cfg.log, O_WRONLY | O_CREAT, 0600); if (log_fd < 0) error("open log file"); } Then it is sometimes difficult to determine where the new log output ends :-) I would suggest to add O_APPEND. Thanks, Christian -- 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