delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/20/22:11:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <028201c3f828$4ad2b8d0$b3db87d4@multiplay.co.uk>
From: "Steven Hartland" <killing AT multiplay DOT co DOT uk>
To: "Cygwin List" <cygwin AT cygwin DOT com>
References: <F67AB1DD14544242BE5BFE94F5939175B7F298 AT E2KMEMMCS1 DOT ftbco DOT ftn DOT com> <40369C0A DOT 50934507 AT dessent DOT net> <020f01c3f811$261811f0$b3db87d4 AT multiplay DOT co DOT uk> <6 DOT 0 DOT 1 DOT 1 DOT 0 DOT 20040220213404 DOT 039ca370 AT 127 DOT 0 DOT 0 DOT 1>
Subject: Re: tar and open files
Date: Sat, 21 Feb 2004 03:10:43 -0000
MIME-Version: 1.0
X-Spam-Processed: multiplay.co.uk, Sat, 21 Feb 2004 03:01:32 +0000 (not processed: message from valid local sender)
X-MDRemoteIP: 212.135.219.179
X-Return-Path: killing AT multiplay DOT co DOT uk
X-MDaemon-Deliver-To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

----- Original Message ----- 
From: "Larry Hall" 
> At 07:25 PM 2/20/2004, Steven Hartland you wrote:
> >That's a cool idea but its not an install so no pending files :(
> >
> >I was toying with the idea of amending tar for cygwin so that
> >it could move the offending files to a specific dir or /var/tmp
> >by default when encountering such a file. All the times I've
> >tried this its still possible to move the file even though its
> >locked open. Delete fails otherwise --unlink would work
> >Actually now I just said it could alter --unlink to do a move
> >if the delete failed and that would also fix and would be
> >a neater solution. What do people think?
> 
> 
> If it's just delaying the problem, I'm not sure this really helps.
> What happens when you tar again?  What happens to the "thing" that's
> locked the file?  How do you get it to "update" to the new one.  If
> this doesn't just push the puck down the ice, I think it's a great 
> idea. 

In the situation I have here its updating an app where we are
not bothered if it doesnt get updated till the user restarts the
app. The thing that's locked the file will continue to run with
the old version without issue, only when it unlocks and
subsequently reopens ( e.g. in a restart ) will it pick the new
file up. The only issue I see is the remaining files after move
one hack for this may be to manually move them to the
recycle bin if that's possible? Duplicate names in the
destination could be easily be checked for so that's not
an issue. If recycle bin isn't an option then the system temp
dir with a suitable filename might be a way to go unless
there's is a FS level delete on close within win32?

    Steve

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137
or return the E.mail to postmaster AT multiplay DOT co DOT uk.



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

- Raw text -


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