From 122c61aa2f946dbe48b80c1a816acf90ad002a8b Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 19 May 2022 22:20:48 +0200 Subject: [PATCH] Use pid=0 (process group) with emitting SIGINT I have not seen this to be necessary, but it goes in line with handling SIGSTOP then (https://github.com/pypy/pyrepl/pull/49). --- pyrepl/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):