diff options
author | Christian Pointner <equinox@spreadspace.org> | 2010-11-19 17:14:08 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2010-11-19 17:14:08 +0000 |
commit | 4d1445f1d53ff7aef3d81411c4a52a5a9229f56d (patch) | |
tree | 17904e1fdfb59e16bd57a93f89651faa9318723f | |
parent | fixed stdout module (using full cpu after first command) (diff) |
cleanup
git-svn-id: https://svn.spreadspace.org/gcsd/trunk@43 ac14a137-c7f1-4531-abe0-07747231d213
-rw-r--r-- | src/modules/stdio.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/stdio.lua b/src/modules/stdio.lua index 8fb6f09..e31aa89 100644 --- a/src/modules/stdio.lua +++ b/src/modules/stdio.lua @@ -54,13 +54,14 @@ function stdio:new(config) in_handle.in_buffer = "" function in_handle:getfd() return self.fd end function in_handle:read() - -- TODO: support read until matched command + -- TODO: which size should we request?? local buffer, err = rawio.read(0, 100) if(buffer == nil) then log.printf(log.ERROR, inst.name .. ": connection error: %s", err) return defines.KILL_MODULE_CLASS end + -- TODO: support read until matched command self.in_buffer = self.in_buffer .. buffer -- TODO: dispatch table et al command_queue:command_completed() |