[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 06/10: grc/blocks: Fix XML RPC server to al
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 06/10: grc/blocks: Fix XML RPC server to allow proper flowgraph termination |
Date: |
Fri, 28 Aug 2015 19:19:49 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 5b437bc9a8b53132bed6cab981ee3ae876f864e0
Author: Sylvain Munaut <address@hidden>
Date: Wed Aug 26 07:28:57 2015 -0400
grc/blocks: Fix XML RPC server to allow proper flowgraph termination
Without this, the XML RPC server thread will stay alive and the program
will never terminate.
By making it a 'daemon' thread, if it's the only thread left alive, python
will automatically terminate it.
Signed-off-by: Sylvain Munaut <address@hidden>
---
grc/blocks/xmlrpc_server.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/grc/blocks/xmlrpc_server.xml b/grc/blocks/xmlrpc_server.xml
index 6c31bd1..602d444 100644
--- a/grc/blocks/xmlrpc_server.xml
+++ b/grc/blocks/xmlrpc_server.xml
@@ -11,7 +11,9 @@
<import>import threading</import>
<make>SimpleXMLRPCServer.SimpleXMLRPCServer(($addr, $port),
allow_none=True)
self.$(id).register_instance(self)
-threading.Thread(target=self.$(id).serve_forever).start()</make>
+self.$(id)_thread = threading.Thread(target=self.$(id).serve_forever)
+self.$(id)_thread.daemon = True
+self.$(id)_thread.start()</make>
<param>
<name>Address</name>
<key>addr</key>
- [Commit-gnuradio] [gnuradio] branch maint updated (22e2f1a -> d063b05), git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 07/10: Merge remote-tracking branch 'geiger/fix_pfb_arb_resampler_fff' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 02/10: grc: fix for reverted commit f184ccf 'better Popen argument handling...', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 04/10: Bring fix from other pfb_arb_resampler_* variants, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 05/10: cmake: Fix warning related to GrSetupQt4 in modern CMake, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 03/10: grc: fix printing empty traceback when a block is missing, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 09/10: Fixes Coverity Defect 1229872: Memory leak in `atsci_equalizer_lms2` DTOR, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 01/10: gr-zeromq: fix python examples, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 08/10: Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 10/10: Merge remote-tracking branch 'bhilburn/cov1229872' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 06/10: grc/blocks: Fix XML RPC server to allow proper flowgraph termination,
git <=