> Si poskusil s flock(fd, LOCK_EX) ? Odklenes pa s flock(fd, LOCK_UN).
> Zraven morda dodas se LOCK_NB (LOCK_EX | LOCK_NB) da ti ne blokira ce
> je zaklenjeno razen ce to seveda zelis.

Unix Programming FAQ pravi:

  `flock()' originates with BSD, and is now available in most (but not all)
  Unices.  It is simple and effective on a single host, but doesn't work at
  all with NFS.  It locks an entire file.

A je to res? Ker ce je, me tak nacin zaklepanja sploh ne zanima.

Primoz


Reply via email to