<?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: Forking Ruby makes MySQL go away</title>
	<atom:link href="http://labnotes.org/2005/11/07/forking-ruby-makes-mysql-go-away/feed/" rel="self" type="application/rss+xml" />
	<link>http://labnotes.org/2005/11/07/forking-ruby-makes-mysql-go-away/</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 02:41:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Assaf</title>
		<link>http://labnotes.org/2005/11/07/forking-ruby-makes-mysql-go-away/comment-page-1/#comment-282</link>
		<dc:creator>Assaf</dc:creator>
		<pubDate>Thu, 17 Nov 2005 11:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2005/11/07/forking-ruby-makes-mysql-go-away/#comment-282</guid>
		<description>&lt;p&gt;thanks.&lt;/p&gt;

&lt;p&gt;one case where I would like to fork the code is calling Open3, so I can run a shell command that may not exist, and detect it from stderr.&lt;/p&gt;

&lt;p&gt;doing %x{} or anything else displays an error in the console.&lt;/p&gt;

&lt;p&gt;I&#039;d also want to play with processes to see if there&#039;s any performance difference from threads.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>thanks.</p>
<p>one case where I would like to fork the code is calling Open3, so I can run a shell command that may not exist, and detect it from stderr.</p>
<p>doing %x{} or anything else displays an error in the console.</p>
<p>I&#8217;d also want to play with processes to see if there&#8217;s any performance difference from threads.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Granger</title>
		<link>http://labnotes.org/2005/11/07/forking-ruby-makes-mysql-go-away/comment-page-1/#comment-252</link>
		<dc:creator>Michael Granger</dc:creator>
		<pubDate>Thu, 10 Nov 2005 13:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.labnotes.org/2005/11/07/forking-ruby-makes-mysql-go-away/#comment-252</guid>
		<description>&lt;p&gt;That happens when something clobbers the socket in your handle to the db. Since fork() isn&#039;t implemented in win32, there must be something funky in Ruby&#039;s fork() emulation that&#039;s invalidating the socket in your handle.&lt;/p&gt;

&lt;p&gt;Do you really need to fork? You can use Thread {} for simultaneity, and if you just want a daemonized process, Daniel Berger has an excellent module that lets you write Win32 services in Ruby: http://raa.ruby-lang.org/project/win32-service/&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>That happens when something clobbers the socket in your handle to the db. Since fork() isn&#8217;t implemented in win32, there must be something funky in Ruby&#8217;s fork() emulation that&#8217;s invalidating the socket in your handle.</p>
<p>Do you really need to fork? You can use Thread {} for simultaneity, and if you just want a daemonized process, Daniel Berger has an excellent module that lets you write Win32 services in Ruby: <a href="http://raa.ruby-lang.org/project/win32-service/" rel="nofollow">http://raa.ruby-lang.org/project/win32-service/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

