MCPcopy Index your code
hub / github.com/python/cpython / freeze_support

Function freeze_support

Lib/multiprocessing/spawn.py:67–80  ·  view source on GitHub ↗

Run code for process object if this in not the main process

()

Source from the content-addressed store, hash-verified

65
66
67def freeze_support():
68 '''
69 Run code for process object if this in not the main process
70 '''
71 if is_forking(sys.argv):
72 kwds = {}
73 for arg in sys.argv[2:]:
74 name, value = arg.split('=')
75 if value == 'None':
76 kwds[name] = None
77 else:
78 kwds[name] = int(value)
79 spawn_main(**kwds)
80 sys.exit()
81
82
83def get_command_line(**kwds):

Callers 3

mp_workers.pyFile · 0.90
mp_newtype.pyFile · 0.90
freeze_supportMethod · 0.70

Calls 4

is_forkingFunction · 0.85
spawn_mainFunction · 0.85
splitMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…