summaryrefslogtreecommitdiff
path: root/nopsyncd/qlistener.lua
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2011-03-08 18:07:24 (GMT)
committerChristian Pointner <equinox@helsinki.at>2011-03-08 18:07:24 (GMT)
commitaa50ae92057db36e033b157bbe393d6c7df9fc05 (patch)
tree1c1d9469d625784f7e038d4c445eaf72055a2587 /nopsyncd/qlistener.lua
parent914ee9d782bdd514058bf90ed118523a252bcc02 (diff)
added pipe between worker threads
Diffstat (limited to 'nopsyncd/qlistener.lua')
-rwxr-xr-xnopsyncd/qlistener.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/nopsyncd/qlistener.lua b/nopsyncd/qlistener.lua
index c850cc6..7594d68 100755
--- a/nopsyncd/qlistener.lua
+++ b/nopsyncd/qlistener.lua
@@ -30,7 +30,7 @@ function main_loop()
os.exit(1)
end
- --while true do
+ while true do
local msg, prio = mq.receive(q)
if msg == nil then
io.stderr:write("recv error: " .. prio .. "\n")
@@ -38,5 +38,7 @@ function main_loop()
end
print("received message '" .. msg .. "' with prio: " .. prio)
- --end
+
+ pipe.signal()
+ end
end \ No newline at end of file