<?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: Handling a Fork</title>
	<atom:link href="http://winpdb.org/docs/handling-a-fork/feed/" rel="self" type="application/rss+xml" />
	<link>http://winpdb.org</link>
	<description></description>
	<pubDate>Thu, 17 May 2012 22:22:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rogue</title>
		<link>http://winpdb.org/docs/handling-a-fork/comment-page-1/#comment-178379</link>
		<dc:creator>rogue</dc:creator>
		<pubDate>Fri, 04 May 2012 15:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://winpdb.org/?page_id=26#comment-178379</guid>
		<description>Excellent, "fork parent, auto" works perfectly.  Thanks.</description>
		<content:encoded><![CDATA[<p>Excellent, &#8220;fork parent, auto&#8221; works perfectly.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://winpdb.org/docs/handling-a-fork/comment-page-1/#comment-178299</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 04 May 2012 06:18:11 +0000</pubDate>
		<guid isPermaLink="false">http://winpdb.org/?page_id=26#comment-178299</guid>
		<description>Doing this at the prompt seems to do it.

&#62;fork parent, auto</description>
		<content:encoded><![CDATA[<p>Doing this at the prompt seems to do it.</p>
<p>&gt;fork parent, auto</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rogue</title>
		<link>http://winpdb.org/docs/handling-a-fork/comment-page-1/#comment-178185</link>
		<dc:creator>rogue</dc:creator>
		<pubDate>Thu, 03 May 2012 17:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://winpdb.org/?page_id=26#comment-178185</guid>
		<description>"By default the debugger will pause (break) the debuggee when it identifies that a fork is about to be attempted"

The above statement implies there's a way to turn that behavior off.  I'd be elated to hear that there is a way to do this.  Is there?</description>
		<content:encoded><![CDATA[<p>&#8220;By default the debugger will pause (break) the debuggee when it identifies that a fork is about to be attempted&#8221;</p>
<p>The above statement implies there&#8217;s a way to turn that behavior off.  I&#8217;d be elated to hear that there is a way to do this.  Is there?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pythonuser</title>
		<link>http://winpdb.org/docs/handling-a-fork/comment-page-1/#comment-90655</link>
		<dc:creator>pythonuser</dc:creator>
		<pubDate>Tue, 01 Sep 2009 12:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://winpdb.org/?page_id=26#comment-90655</guid>
		<description>OK, I've worked around the issue by using the info from the Embedded Debugging link on the right, e.g.:

        pid = os.fork()
        if pid &#62; 0:
            os.waitpid(pid, 0)
        else:
            if os.environ.get('DEBUG_RPDB2'):
                sys.path.append('/var/tmp/bin')
                import rpdb2;
                rpdb2.start_embedded_debugger('test', fAllowRemote = True)
            # rest of child process follows here</description>
		<content:encoded><![CDATA[<p>OK, I&#8217;ve worked around the issue by using the info from the Embedded Debugging link on the right, e.g.:</p>
<p>        pid = os.fork()<br />
        if pid &gt; 0:<br />
            os.waitpid(pid, 0)<br />
        else:<br />
            if os.environ.get(&#8217;DEBUG_RPDB2&#8242;):<br />
                sys.path.append(&#8217;/var/tmp/bin&#8217;)<br />
                import rpdb2;<br />
                rpdb2.start_embedded_debugger(&#8217;test&#8217;, fAllowRemote = True)<br />
            # rest of child process follows here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pythonuser</title>
		<link>http://winpdb.org/docs/handling-a-fork/comment-page-1/#comment-90653</link>
		<dc:creator>pythonuser</dc:creator>
		<pubDate>Tue, 01 Sep 2009 12:03:26 +0000</pubDate>
		<guid isPermaLink="false">http://winpdb.org/?page_id=26#comment-90653</guid>
		<description>No joy with that. Client is WinXP, server is CentOS release 5 (Final). Both on Python 2.6. Any ideas welcome. :)</description>
		<content:encoded><![CDATA[<p>No joy with that. Client is WinXP, server is CentOS release 5 (Final). Both on Python 2.6. Any ideas welcome. <img src='http://winpdb.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pythonuser</title>
		<link>http://winpdb.org/docs/handling-a-fork/comment-page-1/#comment-90651</link>
		<dc:creator>pythonuser</dc:creator>
		<pubDate>Tue, 01 Sep 2009 11:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://winpdb.org/?page_id=26#comment-90651</guid>
		<description>Just after entering 'fork child' and resuming, in the server I get:
Exception in thread __worker_target:
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/threading.py", line 525, in __bootstrap_inner
    self.run()
  File "/var/tmp/bin/rpdb2.py", line 4570, in run
    threading.Thread.run(self)
  File "/usr/local/lib/python2.6/threading.py", line 477, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/var/tmp/bin/rpdb2.py", line 9357, in __worker_target
    self.m_lock.release()
  File "/usr/local/lib/python2.6/threading.py", line 136, in release
    raise RuntimeError("cannot release un-aquired lock")
RuntimeError: cannot release un-aquired lock

Am going to try putting a catch block around that stmt.</description>
		<content:encoded><![CDATA[<p>Just after entering &#8216;fork child&#8217; and resuming, in the server I get:<br />
Exception in thread __worker_target:<br />
Traceback (most recent call last):<br />
  File &#8220;/usr/local/lib/python2.6/threading.py&#8221;, line 525, in __bootstrap_inner<br />
    self.run()<br />
  File &#8220;/var/tmp/bin/rpdb2.py&#8221;, line 4570, in run<br />
    threading.Thread.run(self)<br />
  File &#8220;/usr/local/lib/python2.6/threading.py&#8221;, line 477, in run<br />
    self.__target(*self.__args, **self.__kwargs)<br />
  File &#8220;/var/tmp/bin/rpdb2.py&#8221;, line 9357, in __worker_target<br />
    self.m_lock.release()<br />
  File &#8220;/usr/local/lib/python2.6/threading.py&#8221;, line 136, in release<br />
    raise RuntimeError(&#8221;cannot release un-aquired lock&#8221;)<br />
RuntimeError: cannot release un-aquired lock</p>
<p>Am going to try putting a catch block around that stmt.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

