Skip to content

Commit 6465764

Browse files
committed
Update asv patch after we introduced os.setpgid
(cherry picked from commit aa4c41d)
1 parent 7cb112c commit 6465764

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

graalpython/lib-graalpython/patches/asv/sdist/asv-0.5.1.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,16 @@ index 6411894..05f0678 100644
1111
else:
1212
# Transient effects exist also on CPython, e.g. from
1313
# OS scheduling
14+
diff --git a/asv/util.py b/asv/util.py
15+
index 52eb96e..98daf61 100644
16+
--- a/asv/util.py
17+
+++ b/asv/util.py
18+
@@ -544,7 +544,7 @@ def check_output(args, valid_return_codes=(0,), timeout=600, dots=True,
19+
else:
20+
kwargs['close_fds'] = True
21+
- posix = getattr(os, 'setpgid', None)
22+
+ posix = getattr(os, 'setpgid', None) and sys.implementation.name != "graalpy"
23+
if posix:
24+
# Run the subprocess in a separate process group, so that we
25+
# can kill it and all child processes it spawns e.g. on
26+
# timeouts. Note that subprocess.Popen will wait until exec()

0 commit comments

Comments
 (0)