This is the mail archive of the
mailing list for the Cygwin project.
Re: overwriting an in-use executable
2009/12/13 Christian Franke:
> 'cp' does not unlink() before overwriting an existing file, it tries to
> overwrite the data in place. This also fails on *nix, typically with "Text
> file busy".
> 'mv' only modifies the link between file name in directory and file data.
> The OS can keep the old data (inode) until the exe terminates.
That makes plenty of sense.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple