Skip to content

tetragon: fix graceful shutdown and exit code #520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

tixxdz
Copy link
Member

@tixxdz tixxdz commented Nov 1, 2022

Right now tetragon always exit with 1, let's fix this and improve graceful shutdown, so service monitors and container managers... won't treat Tetragon as it failed.

Some start up logic was re-ordered to improve how we cleanup things.

Also this change will make tetragonExecute() return up to callers, and allow Tetragon main to exit with 0.

Signed-off-by: Djalal Harouni [email protected]

@tixxdz tixxdz requested a review from a team as a code owner November 1, 2022 12:13
@tixxdz tixxdz requested a review from tpapagian November 1, 2022 12:13
Right now tetragon always exit with 1, let's fix this and improve
graceful shutdown, so service monitors and container managers...
won't treat Tetragon as it failed.

Some start up logic was re-ordered to improve how we cleanup things.

Also this change will make tetragonExecute() return up to callers,
and allow Tetragon main to exit with 0.

Signed-off-by: Djalal Harouni <[email protected]>
@tixxdz tixxdz force-pushed the pr/tixxdz/improve-signal-handling branch from 01c3ac2 to f65d93d Compare November 1, 2022 12:21
@jrfastab jrfastab merged commit bb7a97b into main Nov 3, 2022
@jrfastab jrfastab deleted the pr/tixxdz/improve-signal-handling branch November 3, 2022 00:07
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.

3 participants