Message28904
Logged In: YES
user_id=11375
Interesting. The man page for flock() on my Linux system
says of flock() in a certain version: "This yields true
BSD semantics: there is no interaction
between the types of lock placed by flock(2) and fcntl(2),
and flock(2) does not detect deadlock." Apparently this is
out of date, and placing two locks is harmful.
I think it's best to just use one set of locking primitives,
and that one should be lockf(); the flock() calls should be
removed.
|
|
Date |
User |
Action |
Args |
2007-08-23 14:40:48 | admin | link | issue1512163 messages |
2007-08-23 14:40:48 | admin | create | |
|