Define the environment variable WAF_NO_PREFORK to skip pre-forking

This commit is contained in:
Thomas Nagy 2017-12-22 15:40:06 +01:00
parent aa361ee568
commit 955e10291d
1 changed files with 1 additions and 1 deletions

View File

@ -983,7 +983,7 @@ def atexit_pool():
if (sys.hexversion<0x207000f and not is_win32) or sys.hexversion>=0x306000f:
atexit.register(atexit_pool)
if sys.platform == 'cli' or not sys.executable:
if os.environ.get('WAF_NO_PREFORK') or sys.platform == 'cli' or not sys.executable:
run_process = run_regular_process
get_process = alloc_process_pool = nada