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

Merged
merged 1 commit into from Feb 12, 2013

Conversation

Projects
None yet
2 participants
Contributor

fidlej commented Feb 12, 2013

I have one change now.
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

koraykv added a commit that referenced this pull request Feb 12, 2013

Merge pull request #110 from fidlej/topic_lstop
Raise error("interrupted!") when torch-qlua is interrupted by ctrl-C.

@koraykv koraykv merged commit befa6e2 into torch:master Feb 12, 2013

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