openbsd-ports/www/py-terminado/patches/patch-terminado_management_py
bket 78cb7b46b8 Update to py-terminado-0.8.3
Migrate to python3 only.

OK paco@, kmos@
2020-02-25 20:28:45 +00:00

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):