diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py b/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py index a0855c8e8..a59883e86 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py @@ -39,6 +39,10 @@ class Rpc: "deltachat-rpc-server", stdin=subprocess.PIPE, stdout=subprocess.PIPE, + # Prevent subprocess from capturing SIGINT. + # We are not using `process_group` + # because it is not supported before Python 3.11. + preexec_fn=os.setpgrp, **self._kwargs, ) self.id = 0