From 20e80e3bcb6a719603677d4bb0e2522287a3eb64 Mon Sep 17 00:00:00 2001 From: Russ Fellows Date: Sun, 31 May 2026 17:49:00 -0600 Subject: [PATCH] fix: add EXIT_CODE.INTERRUPTED to resolve AttributeError on SIGTERM When dlio_benchmark exits, OpenMPI sends SIGTERM to the parent process group. The mlpstorage signal handler calls sys.exit(EXIT_CODE.INTERRUPTED), which crashed with AttributeError because INTERRUPTED was missing from the EXIT_CODE enum in config.py. Add INTERRUPTED = 8 to the enum. Fixes #392 Fixes #393 --- mlpstorage_py/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlpstorage_py/config.py b/mlpstorage_py/config.py index 2d985d78..f4fe4cd0 100755 --- a/mlpstorage_py/config.py +++ b/mlpstorage_py/config.py @@ -147,7 +147,7 @@ class EXIT_CODE(enum.IntEnum): CONFIGURATION_ERROR = 5 FAILURE = 6 TIMEOUT = 7 - # Add more as needed + INTERRUPTED = 8 def __str__(self): return f"{self.name} ({self.value})"