From d9b564acb4daf45484861cafde3c3bc8038964d0 Mon Sep 17 00:00:00 2001 From: ahrenholz Date: Mon, 28 Oct 2013 21:42:32 +0000 Subject: [PATCH] added TODO comment for scripts that don't return (Boeing r1790) --- daemon/sbin/core-daemon | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/sbin/core-daemon b/daemon/sbin/core-daemon index c1bafaab..98611dd4 100755 --- a/daemon/sbin/core-daemon +++ b/daemon/sbin/core-daemon @@ -876,6 +876,10 @@ class CoreRequestHandler(SocketServer.BaseRequestHandler): old_session_ids = set(server.getsessionids()) sys.argv = shlex.split(ex) scriptname = sys.argv[0] + # TODO: Script may not return; run in separate thread here. + # Wait for some configurable timeout period, then check + # for new session below. Wait for session to enter + # the runtime state, then send back the register message. execfile(scriptname, {'server': server}) if msg.flags & coreapi.CORE_API_STR_FLAG: new_session_ids = set(server.getsessionids())