<br><br><div class="gmail_quote">On Fri, Aug 2, 2013 at 5:05 PM, Chris Larson <span dir="ltr">&lt;<a href="mailto:clarson@kergoth.com" target="_blank">clarson@kergoth.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 1, 2013 at 7:19 AM,  <span dir="ltr">&lt;<a href="mailto:joe@deserted.net" target="_blank">joe@deserted.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div style="overflow:hidden">From: Joe MacDonald &lt;<a href="mailto:joe@deserted.net" target="_blank">joe@deserted.net</a>&gt;<br>
<br>
Based on:<br>
<br>
   <a href="http://blog.devork.be/2009/07/how-to-bring-running-python-program.html" target="_blank">http://blog.devork.be/2009/07/how-to-bring-running-python-program.html</a><br>
<br>
register a signal handler to dynamically start pdb tracing on receiving<br>
SIGUSR1.<br>
<br>
Signed-off-by: Joe MacDonald &lt;<a href="mailto:joe@deserted.net" target="_blank">joe@deserted.net</a>&gt;</div></blockquote></div><br>As long as you keep in mind this will only affect the UI, not the forked off server, this could be useful. I&#39;d suggest adding something for the server as well, but it&#39;d need to listen to a socket for the input, lacking access to the user&#39;s tty, or would need to interface with the UI to do it :)</div>
</div></blockquote><div><br></div><div>That&#39;s a really good idea.  It seemed like anything was better than what I had at the time, but now that you mention it being able to use pdb (or something like it) to talk to one of the forked processes would be a really helpful with the current problem I&#39;m looking at.  I&#39;ll see what I can do about extending this (since it doesn&#39;t sound like it&#39;s a fundamentally bad idea, just of limited applicability here) to more than just the UI. </div>
</div><div><br></div><div>Thanks Chris.</div><div><br></div>-- <br>Joe MacDonald<br>:wq