Skip to content

Commit 4c6daee

Browse files
committed
fail waiting for specific process groups
1 parent 7c9c829 commit 4c6daee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PosixResources.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ private int nextFreePid() {
395395

396396
private Process getChild(int pid) throws IndexOutOfBoundsException {
397397
if (pid < 0) {
398-
return children.get(0); // we do not support process groups
398+
throw new IndexOutOfBoundsException("we do not support process groups");
399399
} else {
400400
return children.get(pid);
401401
}

0 commit comments

Comments
 (0)