delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/06/21/04:19:00

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 21 Jun 2011 10:18:09 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: less locks the file
Message-ID: <20110621081809.GO3437@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <itpij1$foc$1 AT dough DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <itpij1$foc$1@dough.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Jun 21 09:50, Jean-Pierre Bergamin wrote:
> Dear cygwin-Users
> 
> When using less to follow a log file (less +F logfile.log), this
> file is locked. So when I restart the application, it cannot delete
> this locked log file and create a new one. So I always have to quit
> less, before restarting the app, which I of course forget like every
> 2nd time... less does not lock on linux.
> 
> Is there any way I could tell less not to lock the file?

Upgrade Cygwin to the latest release might be an option.  It's not less
which locks the file, it's the fact that Windows does not allow to
delete files which are in use.  Recent Cygwin versions have a workaround
for this.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019