- Timestamp:
- 07/25/12 01:58:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
etherws/trunk/etherws.py
r174 r175 45 45 import ssl 46 46 import time 47 import fcntl 47 48 import base64 48 49 import hashlib … … 339 340 340 341 with open(self._path) as fp: 341 self._stat = os.fstat(fp.fileno()) 342 fileno = fp.fileno() 343 fcntl.flock(fileno, fcntl.LOCK_SH | fcntl.LOCK_NB) 344 self._stat = os.fstat(fileno) 342 345 343 346 unchanged = old_stat and \
Note: See TracChangeset
for help on using the changeset viewer.