<?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: Worst lock acquisition code ever.</title>
	<atom:link href="http://kenkinder.com/2008/11/24/worst-lock-acquisition-code-ever/feed/" rel="self" type="application/rss+xml" />
	<link>http://kenkinder.com/2008/11/24/worst-lock-acquisition-code-ever/</link>
	<description>Ken Kinder&#039;s personal website</description>
	<lastBuildDate>Wed, 02 Jun 2010 07:46:06 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jonathan Briggs</title>
		<link>http://kenkinder.com/2008/11/24/worst-lock-acquisition-code-ever/comment-page-1/#comment-472</link>
		<dc:creator>Jonathan Briggs</dc:creator>
		<pubDate>Mon, 08 Dec 2008 07:58:06 +0000</pubDate>
		<guid isPermaLink="false">/?p=82#comment-472</guid>
		<description>Liferea, a Gnome RSS reader.  It isn&#039;t showing an error today so I can&#039;t see the exact problem.</description>
		<content:encoded><![CDATA[<p>Liferea, a Gnome RSS reader.  It isn&#8217;t showing an error today so I can&#8217;t see the exact problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Kinder</title>
		<link>http://kenkinder.com/2008/11/24/worst-lock-acquisition-code-ever/comment-page-1/#comment-461</link>
		<dc:creator>Ken Kinder</dc:creator>
		<pubDate>Wed, 26 Nov 2008 18:47:55 +0000</pubDate>
		<guid isPermaLink="false">/?p=82#comment-461</guid>
		<description>Oh, and yeah, I thought I would start blogging again. I gave up on writing my own web framework and am now using WordPress. It&#039;s really a very impressive little package, especially when I throw on some useful plugins.

Even though I&#039;m loathed to use anything in PHP. :)</description>
		<content:encoded><![CDATA[<p>Oh, and yeah, I thought I would start blogging again. I gave up on writing my own web framework and am now using WordPress. It&#8217;s really a very impressive little package, especially when I throw on some useful plugins.</p>
<p>Even though I&#8217;m loathed to use anything in PHP. <img src='http://kenkinder.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Kinder</title>
		<link>http://kenkinder.com/2008/11/24/worst-lock-acquisition-code-ever/comment-page-1/#comment-460</link>
		<dc:creator>Ken Kinder</dc:creator>
		<pubDate>Wed, 26 Nov 2008 18:47:13 +0000</pubDate>
		<guid isPermaLink="false">/?p=82#comment-460</guid>
		<description>The one here?

http://kenkinder.com/comments/feed/

It looks escaped correctly to me and Firefox parses it. What RSS reader are you using?</description>
		<content:encoded><![CDATA[<p>The one here?</p>
<p><a href="http://kenkinder.com/comments/feed/" rel="nofollow">http://kenkinder.com/comments/feed/</a></p>
<p>It looks escaped correctly to me and Firefox parses it. What RSS reader are you using?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken Kinder</title>
		<link>http://kenkinder.com/2008/11/24/worst-lock-acquisition-code-ever/comment-page-1/#comment-459</link>
		<dc:creator>Ken Kinder</dc:creator>
		<pubDate>Wed, 26 Nov 2008 18:46:32 +0000</pubDate>
		<guid isPermaLink="false">/?p=82#comment-459</guid>
		<description>Yeah, sometimes it&#039;s astonishing how resistant Open Source developers are to bug fixes. If you see my thread on CherryPy, it has yet to be answered. And since I posted it, a new version has come out, without a fix. Now CherryPy&#039;s session code is rendering 500 errors when the user has an invalid cookie, but writes nothing in the log file. The whole thing is making me re-evaluate my choice of CherryPy.</description>
		<content:encoded><![CDATA[<p>Yeah, sometimes it&#8217;s astonishing how resistant Open Source developers are to bug fixes. If you see my thread on CherryPy, it has yet to be answered. And since I posted it, a new version has come out, without a fix. Now CherryPy&#8217;s session code is rendering 500 errors when the user has an invalid cookie, but writes nothing in the log file. The whole thing is making me re-evaluate my choice of CherryPy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Briggs</title>
		<link>http://kenkinder.com/2008/11/24/worst-lock-acquisition-code-ever/comment-page-1/#comment-458</link>
		<dc:creator>Jonathan Briggs</dc:creator>
		<pubDate>Wed, 26 Nov 2008 18:06:29 +0000</pubDate>
		<guid isPermaLink="false">/?p=82#comment-458</guid>
		<description>Also your blog has a bug in the comments feed that I am seeing in the modem chat strings Aaron wrote.  It isn&#039;t escaping the ampersands correctly, creating invalid XML.</description>
		<content:encoded><![CDATA[<p>Also your blog has a bug in the comments feed that I am seeing in the modem chat strings Aaron wrote.  It isn&#8217;t escaping the ampersands correctly, creating invalid XML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Briggs</title>
		<link>http://kenkinder.com/2008/11/24/worst-lock-acquisition-code-ever/comment-page-1/#comment-457</link>
		<dc:creator>Jonathan Briggs</dc:creator>
		<pubDate>Wed, 26 Nov 2008 18:03:00 +0000</pubDate>
		<guid isPermaLink="false">/?p=82#comment-457</guid>
		<description>Hi Ken, glad to see you back blogging.  I was surprised when my RSS reader popped up with new entries from you.  It&#039;s been a long time!

This lock method is pretty bad I agree.  I&#039;ve seen it in C code as well, although C programmers seem a bit more likely to check for a specific error code.

The worst/most annoying file locking bug I&#039;ve seen is in Evolution, the email program.  Their mbox update code locked the original mbox file while writing a .tmp copy with the updated contents.  It then used rename() to replace the original with the updated copy.  At this point, the file lock is being held on the origninal file which is now DELETED!  But then their code continued on as if the mbox file was still locked.

After I figured that one out and filed a bug report they REFUSED to apply my patch to fix it because they claimed it didn&#039;t matter, then got abusive when I asked why they were bothing to lock the file in the first place.

sigh.</description>
		<content:encoded><![CDATA[<p>Hi Ken, glad to see you back blogging.  I was surprised when my RSS reader popped up with new entries from you.  It&#8217;s been a long time!</p>
<p>This lock method is pretty bad I agree.  I&#8217;ve seen it in C code as well, although C programmers seem a bit more likely to check for a specific error code.</p>
<p>The worst/most annoying file locking bug I&#8217;ve seen is in Evolution, the email program.  Their mbox update code locked the original mbox file while writing a .tmp copy with the updated contents.  It then used rename() to replace the original with the updated copy.  At this point, the file lock is being held on the origninal file which is now DELETED!  But then their code continued on as if the mbox file was still locked.</p>
<p>After I figured that one out and filed a bug report they REFUSED to apply my patch to fix it because they claimed it didn&#8217;t matter, then got abusive when I asked why they were bothing to lock the file in the first place.</p>
<p>sigh.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
