Skip to content

Commit b7654f8

Browse files
timfelfangerer
authored andcommitted
don't suspend python subprocesses
1 parent 25357cf commit b7654f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/SysModuleBuiltins.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ public void initialize(PythonCore core) {
104104
StringBuilder sb = new StringBuilder();
105105
sb.append(System.getProperty("java.home")).append(PythonCore.FILE_SEPARATOR).append("bin").append(PythonCore.FILE_SEPARATOR).append("java ");
106106
for (String arg : ManagementFactory.getRuntimeMXBean().getInputArguments()) {
107+
if (arg.matches("-Xrunjdwp:transport=dt_socket,server=y,address=\\d+,suspend=y")) {
108+
arg = arg.replace("suspend=y", "suspend=n");
109+
}
107110
sb.append(arg).append(' ');
108111
}
109112
sb.append("-classpath ");

0 commit comments

Comments
 (0)