Skip to content

[bugfix] Properly treat forceful termination due to SIGTERM and SIGHUP#3534

Merged
vkarak merged 2 commits intoreframe-hpc:masterfrom
vkarak:bugfix/handle-sighup
Jul 25, 2025
Merged

[bugfix] Properly treat forceful termination due to SIGTERM and SIGHUP#3534
vkarak merged 2 commits intoreframe-hpc:masterfrom
vkarak:bugfix/handle-sighup

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Jul 25, 2025

ReFrame was not exiting gracefully if it received the SIGHUP signal. This is now treated as the SIGTERM. However, there are scenarios, especially when run through Gitlab CI, that ReFrame receives both signals in random order and in close timing. This was problematic as ReFrame was interrupted while having initiated its shutdown. For this reason, the signal handler for both of these signals ignores any interrupt or force-exit signals until ReFrame gracefully exits.

@ekouts This will likely eliminate the need for #3459.

@vkarak vkarak force-pushed the bugfix/handle-sighup branch from 22be2a4 to a4b1ce9 Compare July 25, 2025 10:53
@github-project-automation github-project-automation bot moved this from Todo to In Progress in ReFrame Backlog Jul 25, 2025
@vkarak vkarak enabled auto-merge July 25, 2025 12:21
@vkarak vkarak merged commit abd5fad into reframe-hpc:master Jul 25, 2025
37 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in ReFrame Backlog Jul 25, 2025
@vkarak vkarak deleted the bugfix/handle-sighup branch July 25, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants