19 lines
648 B
Plaintext
19 lines
648 B
Plaintext
$OpenBSD: patch-terminado_management_py,v 1.1 2020/02/25 20:28:45 bket Exp $
|
|
|
|
Don't call getpgid() when killing a test. Taken from
|
|
https://github.com/jupyter/terminado/pull/72.
|
|
|
|
Index: terminado/management.py
|
|
--- terminado/management.py.orig
|
|
+++ terminado/management.py
|
|
@@ -70,8 +70,7 @@ class PtyWithClients(object):
|
|
"""Send a signal to the process group of the process in the pty"""
|
|
if os.name == 'nt':
|
|
return self.ptyproc.kill(sig)
|
|
- pgid = os.getpgid(self.ptyproc.pid)
|
|
- os.killpg(pgid, sig)
|
|
+ os.killpg(self.ptyproc.pid, sig)
|
|
|
|
@gen.coroutine
|
|
def terminate(self, force=False):
|