test(python): restore fatal traceback handler after torch worker setup

This commit is contained in:
Xuanwo
2026-10-27 02:05:05 +08:00
parent 1ce2427478
commit 23658d992c
+1
View File
@@ -325,6 +325,7 @@ def _fork_dataloader_diagnostics(worker_id=None):
print(
f"DataLoader pid={os.getpid()} worker={worker_id}", file=sys.stderr, flush=True
)
faulthandler.disable()
faulthandler.enable(all_threads=True)
faulthandler.register(signal.SIGUSR1, all_threads=True, chain=False)