diff --git a/pyrepl/commands.py b/pyrepl/commands.py index c121f34..68f1791 100644 --- a/pyrepl/commands.py +++ b/pyrepl/commands.py @@ -184,7 +184,7 @@ class interrupt(FinishCommand): def do(self): import signal self.reader.console.finish() - os.kill(os.getpid(), signal.SIGINT) + os.kill(0, signal.SIGINT) class suspend(Command): def do(self):