exit KPV on Ctrl+C

pull/2/merge
Qingping Hou 12 years ago
parent bad329811d
commit b71ac38d3b

@ -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

Loading…
Cancel
Save