[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Deleting a file which is in use



Arun Sharma wrote:

> If user A deletes the file and user B has the file open, the file continues
> to exist. It really gets deleted at the point when B closes it.
> 
> UNIX uses a reference counting + garbage collection mechanism to clean
> up deleted files.
> 
> If the app wants to avoid it, it can always use file locking to emulate
> NT behavior.

This is also the reason why you do not have to reboot Linux after
installing a new app, unlike NT (even 2000 still has this problem).

-- 

Kiran Jonnalagadda
http://lunateks.com

baby.sh: while true; do echo "^G^G^G^G^G"; sed -e 's/food/poop/';
sync; sync; sleep 15; done