exit KPV on Ctrl+C

This commit is contained in:
Qingping Hou
2012-06-12 21:18:39 +08:00
parent bad329811d
commit b71ac38d3b

View File

@@ -247,6 +247,8 @@ function Input:waitEvent(timeout_us, timeout_s)
-- don't report an error on timeout
ev = nil
break
elseif ev == "application forced to quit" then
os.exit(0)
end
DEBUG("got error waiting for events:", ev)
if ev ~= "Waiting for input failed: 4\n" then