note 98350 rejected from function.flock by degeberg
| From: | degeberg@php.net | Date: | Thu, 10 Jun 2010 10:56:38 +0000 |
| Subject: | note 98350 rejected from function.flock by degeberg | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170013@lists.php.net to get a copy of this message | ||
Note Submitter: anderslinden at bredband dot net
----
Is there a reason why unlocking nowadays has to be done manually? It cant be good for stability to
put that demand on the programmer. Locks created by the system call flock(2) is unlocked if you use
the system call close(2) so all php has to do is to rely on those. Locks are also unlocked if
processes terminates.