<?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: multiprocessing.Pool and KeyboardInterrupt</title>
	<atom:link href="http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/feed/" rel="self" type="application/rss+xml" />
	<link>http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/</link>
	<description>python, programming and other things</description>
	<lastBuildDate>Mon, 02 Jan 2012 09:21:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Casey</title>
		<link>http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/comment-page-1/#comment-139296</link>
		<dc:creator>Casey</dc:creator>
		<pubDate>Wed, 08 Jul 2009 07:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=386#comment-139296</guid>
		<description>What and how is _terminate_pool supposed to be used? Can you add some more detail?</description>
		<content:encoded><![CDATA[<p>What and how is _terminate_pool supposed to be used? Can you add some more detail?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Casey</title>
		<link>http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/comment-page-1/#comment-95063</link>
		<dc:creator>Casey</dc:creator>
		<pubDate>Wed, 08 Jul 2009 02:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=386#comment-95063</guid>
		<description>What and how is _terminate_pool supposed to be used? Can you add some more detail?</description>
		<content:encoded><![CDATA[<p>What and how is _terminate_pool supposed to be used? Can you add some more detail?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/comment-page-1/#comment-78484</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Wed, 17 Jun 2009 10:52:24 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=386#comment-78484</guid>
		<description>If you change range(2) to range(200) it does not exit correctly. How would you solve this?</description>
		<content:encoded><![CDATA[<p>If you change range(2) to range(200) it does not exit correctly. How would you solve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jnoller</title>
		<link>http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/comment-page-1/#comment-74556</link>
		<dc:creator>jnoller</dc:creator>
		<pubDate>Tue, 26 May 2009 21:34:57 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=386#comment-74556</guid>
		<description>Something has changed. The nice messages should be being raised.</description>
		<content:encoded><![CDATA[<p>Something has changed. The nice messages should be being raised.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shimmer</title>
		<link>http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/comment-page-1/#comment-74555</link>
		<dc:creator>Shimmer</dc:creator>
		<pubDate>Wed, 20 May 2009 04:21:10 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=386#comment-74555</guid>
		<description>I tried your example and got errors without the nice messages as expected:&lt;br&gt;&lt;br&gt;None&lt;br&gt;None&lt;br&gt;Traceback (most recent call last):&lt;br&gt;  File &quot;testpool.py&quot;, line 26, in &lt;module&gt;&lt;br&gt;    main()&lt;br&gt;  File &quot;testpool.py&quot;, line 23, in main&lt;br&gt;    pool.join()&lt;br&gt;  File &quot;C:Python26libmultiprocessingpool.py&quot;, line 340, in join&lt;br&gt;    self._result_handler.join()&lt;br&gt;  File &quot;C:Python26libthreading.py&quot;, line 634, in join&lt;br&gt;    self.__block.wait()&lt;br&gt;  File &quot;C:Python26libthreading.py&quot;, line 237, in wait&lt;br&gt;    waiter.acquire()&lt;br&gt;KeyboardInterrupt</description>
		<content:encoded><![CDATA[<p>I tried your example and got errors without the nice messages as expected:</p>
<p>None<br />None<br />Traceback (most recent call last):<br />  File “testpool.py”, line 26, in &lt;module&gt;<br />    main()<br />  File “testpool.py”, line 23, in main<br />    pool.join()<br />  File “C:Python26libmultiprocessingpool.py”, line 340, in join<br />    self._result_handler.join()<br />  File “C:Python26libthreading.py”, line 634, in join<br />    self.__block.wait()<br />  File “C:Python26libthreading.py”, line 237, in wait<br />    waiter.acquire()<br />KeyboardInterrupt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aki</title>
		<link>http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/comment-page-1/#comment-63838</link>
		<dc:creator>Aki</dc:creator>
		<pubDate>Thu, 29 Jan 2009 18:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=386#comment-63838</guid>
		<description>Interesting.&lt;br&gt;I did it differently.&lt;br&gt;I disabled SIGINT to any child process using signal.signal(signal.SIGINT, signal.SIG_IGN)&lt;br&gt;The parent takes SIGINT then send a message (or set an event) to each child asking it to shoudown.</description>
		<content:encoded><![CDATA[<p>Interesting.<br />I did it differently.<br />I disabled SIGINT to any child process using signal.signal(signal.SIGINT, signal.SIG_IGN)<br />The parent takes SIGINT then send a message (or set an event) to each child asking it to shoudown.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jnoller</title>
		<link>http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/comment-page-1/#comment-63219</link>
		<dc:creator>jnoller</dc:creator>
		<pubDate>Wed, 14 Jan 2009 18:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=386#comment-63219</guid>
		<description>See the main post. A keyboard interrupt is not handled the same as other exceptions. At least in py2.5-forward the solution in my main blog post works.</description>
		<content:encoded><![CDATA[<p>See the main post. A keyboard interrupt is not handled the same as other exceptions. At least in py2.5-forward the solution in my main blog post works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gaius.julius</title>
		<link>http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/comment-page-1/#comment-63218</link>
		<dc:creator>gaius.julius</dc:creator>
		<pubDate>Wed, 14 Jan 2009 18:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=386#comment-63218</guid>
		<description>anyways, what should I do to gracefully handle KeyboardInterrupt and other similar cases when using Pool?</description>
		<content:encoded><![CDATA[<p>anyways, what should I do to gracefully handle KeyboardInterrupt and other similar cases when using Pool?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jnoller</title>
		<link>http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/comment-page-1/#comment-62757</link>
		<dc:creator>jnoller</dc:creator>
		<pubDate>Fri, 09 Jan 2009 17:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=386#comment-62757</guid>
		<description>See below: exceptions within the children are handled properly in some cases.</description>
		<content:encoded><![CDATA[<p>See below: exceptions within the children are handled properly in some cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean-Paul</title>
		<link>http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/comment-page-1/#comment-62756</link>
		<dc:creator>Jean-Paul</dc:creator>
		<pubDate>Fri, 09 Jan 2009 16:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=386#comment-62756</guid>
		<description>Great. :)</description>
		<content:encoded><![CDATA[<p>Great. :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 728/728 objects using disk: basic

Served from: jessenoller.com @ 2012-02-08 02:14:41 -->
