summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2010-11-19 17:05:57 +0000
committerChristian Pointner <equinox@spreadspace.org>2010-11-19 17:05:57 +0000
commit6ad03f0c108b95623709ca1513f907acaee29996 (patch)
treec8564bf7475582b0cc3e4c16f7842c0b6e9518ca
parentupdated readme (socket is no longer a core dependency) (diff)
fixed stdout module (using full cpu after first command)
git-svn-id: https://svn.spreadspace.org/gcsd/trunk@42 ac14a137-c7f1-4531-abe0-07747231d213
-rw-r--r--src/modules/stdout.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/stdout.lua b/src/modules/stdout.lua
index a508336..98a2212 100644
--- a/src/modules/stdout.lua
+++ b/src/modules/stdout.lua
@@ -52,7 +52,7 @@ function stdout:new(config)
handle.fd = 1
rawio.setnonblock(handle.fd)
handle.client_instance = nil
- handle.out_buffer = nil
+ handle.out_buffer = ""
function handle:getfd() return self.fd end
function handle:read() end
function handle:write()
@@ -77,7 +77,7 @@ function stdout:new(config)
function client:process_timeout() end
function client:get_read_handles() return {} end
function client:get_write_handles()
- if(handle.out_buffer ~= nil) then
+ if(handle.out_buffer ~= "") then
return { handle }
else
return {}