Raise SIGINT on Ctrl-C in REPL if under debugger
Merge pull request #6598 from ihnorton/repl_sigint

SIGINT on Ctrl-C in REPL if under ptrace