feat&fix: add signal handling for VM allocation and improve cleanup on termination

This commit is contained in:
adlsdztony
2025-06-04 03:15:30 +00:00
parent 8d54d4302f
commit 10153ffff6
2 changed files with 42 additions and 2 deletions

View File

@@ -161,7 +161,6 @@ def process_signal_handler(signum, frame, env_idx):
# Get the active_environments from the caller's frame
local_vars = frame.f_locals
print(f"Local variables in process {env_idx + 1}: {local_vars}")
active_environments = local_vars.get('active_environments', [])
# Close environment in the current process context