Raise error("interrupted!") when torch-qlua is interrupted by ctrl-C. #109

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
1 participant
Contributor

fidlej commented Feb 12, 2013

I modified torch-qlua to react to ctrl-C like torch-lua.

Example usage:

$ torch-qlua -e 'while true do os.clock() end'
^Ctorch-qlua: interrupted!
stack traceback:
    [C]: ?
    [C]: in function 'clock'
    [string "while true do os.clock() end"]:1: in main chunk
Contributor

fidlej commented Feb 12, 2013

I unintentionally split the change to multiple commits.
I will try to clean up my branch.

@fidlej fidlej closed this Feb 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment