> Other than that, if your programs don't do locking at all, then
> there's no safe way for you to determine whether a file is done being
> written to or not, allowing for a subtle race condition, perhaps just
> as subtle as tempfile cracking.
>

There is:

fuser <filename>

or

lsof <filename>

returns 0 if the filename is being written.

rowel
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to