Thomas Jollans <tho...@jollybox.de> writes:

> On Thursday 23 September 2010, it occurred to loial to exclaim:
>> How can I check whether a file is being written to by another process
>> before I access it?
>> 
>> Platform is unix.
>
> As such, you can't. But you can lock the file using the functions in the 
> fcntl 
> module.

Last time I checked, file-locking in unix was co-operative.

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to