<?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>Sat, 04 Feb 2012 22:05:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>

