note 105537 added to function.sem-get
| From: | MichaelZ dot at osu1 dot php dot net | Date: | Thu, 25 Aug 2011 13:37:47 +0000 |
| Subject: | note 105537 added to function.sem-get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182723@lists.php.net to get a copy of this message | ||
Watch out when you use fileinode() to get a unique semaphore key (as suggested in some comment on
this or a related function) in conjunction with version control software: It seems, for example, SVN
will change the inode. Using such a file will leave you with your mutex not working reliably and
your system's semaphore pool being filled until further attempts to get a semaphore will fail.
Use ipcs and ipcrm commands from linux-util-ng (on most distros probably) to examine/fix related
problems.
----
Server IP: 212.124.37.9
Probable Submitter: 92.224.126.245
----
Manual Page -- http://www.php.net/manual/en/function.sem-get.php
Edit -- https://master.php.net/note/edit/105537
Del: integrated -- https://master.php.net/note/delete/105537/integrated
Del: useless -- https://master.php.net/note/delete/105537/useless
Del: bad code -- https://master.php.net/note/delete/105537/bad+code
Del: spam -- https://master.php.net/note/delete/105537/spam
Del: non-english -- https://master.php.net/note/delete/105537/non-english
Del: in docs -- https://master.php.net/note/delete/105537/in+docs
Del: other reasons-- https://master.php.net/note/delete/105537
Reject -- https://master.php.net/note/reject/105537
Search -- https://master.php.net/manage/user-notes.php