diff options
author | Christian Pointner <equinox@spreadspace.org> | 2010-11-16 21:00:04 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2010-11-16 21:00:04 +0000 |
commit | 04dcc4756baba596fbdb4e069febc6506eb42936 (patch) | |
tree | b17de7e704118541223bdfa346323e7b58eed84d | |
parent | added command queue (diff) |
add read and write handle of output module
git-svn-id: https://svn.spreadspace.org/gcsd/trunk@28 ac14a137-c7f1-4531-abe0-07747231d213
-rw-r--r-- | src/main_loop.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main_loop.lua b/src/main_loop.lua index ebe42fa..547807b 100644 --- a/src/main_loop.lua +++ b/src/main_loop.lua @@ -40,6 +40,9 @@ function get_readables() table.insert(readables, fd) end end + for _, fd in ipairs(module_list.output.get_read_handles()) do + table.insert(readables, fd) + end for _, client in ipairs(client_list.clients) do for _, fd in ipairs(client:get_read_handles()) do table.insert(readables, fd) @@ -56,6 +59,9 @@ function get_writeables() table.insert(writeables, fd) end end + for _, fd in ipairs(module_list.output.get_write_handles()) do + table.insert(readables, fd) + end for _, client in ipairs(client_list.clients) do for _, fd in ipairs(client:get_write_handles()) do table.insert(writeables, fd) |