Thread Datei sperren: flock()
(31 answers)
Opened by bieber at 2007-07-10 15:25
[quote=sid burn,11.07.2007, 17:50]Ein Benutzer Y klickt auf Bearbeiten, und dann? Im /proc/* nachschauen, wo der Prozess von Benutzer X schon lange nicht mehr existiert, aber trotzdem ein File lock von 10 Minuten auf einer Datei besteht?[/quote]
Dafür sorge tragen, dass der Prozess eben noch existiert und die Session des Benutzers an diesen Prozess binden. Sonst klappt das natürlich nicht. What is a good module? That's hard to say.
What is good code? That's also hard to say. One man's Thing of Beauty is another's man's Evil Hack. |