<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP Exclusive Single Process Mutex</title>
	<atom:link href="http://elliottback.com/wp/php-exclusive-single-process-mutex/feed/" rel="self" type="application/rss+xml" />
	<link>http://elliottback.com/wp/php-exclusive-single-process-mutex/</link>
	<description>Internet &#38; Technology</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:01:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Thomas Hruska</title>
		<link>http://elliottback.com/wp/php-exclusive-single-process-mutex/#comment-2194453</link>
		<dc:creator>Thomas Hruska</dc:creator>
		<pubDate>Mon, 11 Oct 2010 18:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://elliottback.com/wp/?p=3119#comment-2194453</guid>
		<description>That is very similar to my solution:

http://cubicspot.blogspot.com/2010/10/forget-flock-and-system-v-semaphores.html</description>
		<content:encoded><![CDATA[<p>That is very similar to my solution:</p>
<p><a href="http://cubicspot.blogspot.com/2010/10/forget-flock-and-system-v-semaphores.html" rel="nofollow">http://cubicspot.blogspot.com/2010/10/forget-flock-and-system-v-semaphores.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://elliottback.com/wp/php-exclusive-single-process-mutex/#comment-2188902</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Sat, 12 Sep 2009 14:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://elliottback.com/wp/?p=3119#comment-2188902</guid>
		<description>I use this for some time now

&lt;pre class=&quot;brush:php&quot;&gt;
function mutex($mtx, $i)
{
	switch($i){
	case 0: @unlink($mtx); return;
	case 1: while(!($fp = @fopen($mtx,&#039;x&#039;))){ } fclose($fp); return;
	case 2: $fp=@fopen($mtx,&#039;x&#039;); if($fp){ fclose($fp); return 1; } return 0;
	}
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I use this for some time now</p>
<pre class="brush:php">
function mutex($mtx, $i)
{
	switch($i){
	case 0: @unlink($mtx); return;
	case 1: while(!($fp = @fopen($mtx,'x'))){ } fclose($fp); return;
	case 2: $fp=@fopen($mtx,'x'); if($fp){ fclose($fp); return 1; } return 0;
	}
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliott Back</title>
		<link>http://elliottback.com/wp/php-exclusive-single-process-mutex/#comment-2184181</link>
		<dc:creator>Elliott Back</dc:creator>
		<pubDate>Sun, 07 Jun 2009 03:55:08 +0000</pubDate>
		<guid isPermaLink="false">http://elliottback.com/wp/?p=3119#comment-2184181</guid>
		<description>Yeah, my web runs via apache.  But the lockfile is owned as apache.  Interestingly, I just tried it again and it worked on the web (because another was running via cron).  Hmm...</description>
		<content:encoded><![CDATA[<p>Yeah, my web runs via apache.  But the lockfile is owned as apache.  Interestingly, I just tried it again and it worked on the web (because another was running via cron).  Hmm&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Montoya</title>
		<link>http://elliottback.com/wp/php-exclusive-single-process-mutex/#comment-2184080</link>
		<dc:creator>Montoya</dc:creator>
		<pubDate>Fri, 05 Jun 2009 02:35:29 +0000</pubDate>
		<guid isPermaLink="false">http://elliottback.com/wp/?p=3119#comment-2184080</guid>
		<description>Could it be a permissions issue? Usually when running a php file on the command line, you are running as root, but via the web, you might be running as Apache or as nobody.</description>
		<content:encoded><![CDATA[<p>Could it be a permissions issue? Usually when running a php file on the command line, you are running as root, but via the web, you might be running as Apache or as nobody.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.210 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-10 05:06:37 -->

