This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: UNLINK problem (again!!)


Hello,

* On Fri, Mar 20, 2009 at 06:45:12PM +0000 Dave Korn wrote:
 
>   This is Cygwin correctly implementing the POSIX "can delete a file while
> retaining a handle to its contents" semantic, followed by the known Cygwin
> problem (a restiction of the underlying windows OS) that you can't (as you can
> in POSIX) create a new file in place of the old one while you keep that handle
> to the old one's contents.

This restriction could be solved by renaming the file before deleting
it.

The only problem I see with this approach: What file name to choose for
the rename operation?

Best regards,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]