diff options
author | Christian Pointner <equinox@spreadspace.org> | 2010-11-23 01:08:19 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2010-11-23 01:08:19 +0000 |
commit | c4d006d5c113daf4c02bac876bbabb47fdd1358c (patch) | |
tree | 3e10455ffa79c987f31deffd3e8b04d7d753da69 /src/module_list.lua | |
parent | exec and waitpid work with lua table for each child (diff) |
added cleanup function to exec child
git-svn-id: https://svn.spreadspace.org/gcsd/trunk@57 ac14a137-c7f1-4531-abe0-07747231d213
Diffstat (limited to 'src/module_list.lua')
-rw-r--r-- | src/module_list.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/module_list.lua b/src/module_list.lua index 5b35fe9..26f2ff0 100644 --- a/src/module_list.lua +++ b/src/module_list.lua @@ -92,6 +92,11 @@ function module_list:parse_config(module_config) end function module_list:unregister(module) + if(module == self.output) then + log.printf(log.WARNING, "won't remove output module: " .. module.name) + return + end + for i, m in ipairs(self.inputs) do if(m == module) then log.printf(log.INFO, "removing input module: " .. module.name) |