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

Function is_forking

Lib/multiprocessing/spawn.py:57–64  ·  view source on GitHub ↗

Return whether commandline indicates we are forking

(argv)

Source from the content-addressed store, hash-verified

55#
56
57def is_forking(argv):
58 '''
59 Return whether commandline indicates we are forking
60 '''
61 if len(argv) >= 2 and argv[1] == '--multiprocessing-fork':
62 return True
63 else:
64 return False
65
66
67def freeze_support():

Callers 2

freeze_supportFunction · 0.85
spawn_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…