Skip to content

Commit 9518116

Browse files
committed
Use NativeModules=false in contexts used as multiprocessing workers
1 parent bd2959d commit 9518116

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@ public long spawnTruffleContext(int fd, int sentinel, int[] fdsToKeep) {
11511151
forceSharing(getOption(PythonOptions.ForceSharingForInnerContexts)).//
11521152
inheritAllAccess(true).//
11531153
initializeCreatorContext(true).//
1154+
option("python.NativeModules", "false").//
11541155
// TODO always force java posix in spawned: test_multiprocessing_spawn fails
11551156
// with that. Gives "OSError: [Errno 9] Bad file number"
11561157
// option("python.PosixModuleBackend", "java").//

0 commit comments

Comments
 (0)