Removed the Requirement to Install Python and NodeJS (Now Bundled with Borealis)
This commit is contained in:
18
Dependencies/Python/Lib/test/mp_preload.py
vendored
Normal file
18
Dependencies/Python/Lib/test/mp_preload.py
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
import multiprocessing
|
||||
|
||||
multiprocessing.Lock()
|
||||
|
||||
|
||||
def f():
|
||||
print("ok")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
ctx = multiprocessing.get_context("forkserver")
|
||||
modname = "test.mp_preload"
|
||||
# Make sure it's importable
|
||||
__import__(modname)
|
||||
ctx.set_forkserver_preload([modname])
|
||||
proc = ctx.Process(target=f)
|
||||
proc.start()
|
||||
proc.join()
|
Reference in New Issue
Block a user