View Single Post
Old 04-06-2007, 09:51   #5
trallallero
Senior Member
 
L'Avatar di trallallero
 
Iscritto dal: May 2006
Città: Wursteland
Messaggi: 1749
Quote:
Originariamente inviato da ilsensine Guarda i messaggi
Sì che potete farlo con dei file lock. V. man flock o man fcntl.
in effetti (http://www.dbforums.com/archive/inde...1334230.html):
Quote:
Open a lock file and try to get an exclusive flock or a write fcntl lock.
if the attempt fails, the program is already running. Otherwise this is
the running copy; keep the lock file open: that keeps the file system
busy, and on process termination, for any reason whatsoever, the kernel
frees the lock for you
.
non sapevo che il kernel fosse cosi´ furbo
__________________
Nintendo WIII 4d Turbo Intercooler - Sestium X 666 99,312 GHz - 6.984 Ram Σ(9999) MHz - HDD SATA 97e^(10) bytes 93³ rpm - ATI biberon X900z Mb - Win Eight SP (1 > yours) 16 Valve
trallallero è offline   Rispondi citando il messaggio o parte di esso