Skip to content

Conversation

sberss
Copy link

@sberss sberss commented Apr 3, 2025

There is a subtle bug in the run.sh script when using runWithManualTrap. When a SIGINT or SIGTERM is sent, the wait command will be interrupted, causing the return code to be set to 143. It then does its subsequent checks on the incorrect return code, so if run-helper.sh did exit with a return code of 2, the process would not be restarted.

This fix introduces a signaled flag to track when the trap was run. In such cases, the wait will simply be run again.

@sberss sberss requested a review from a team as a code owner April 3, 2025 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant