Skip to content
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

fix: prevent bessctl hanging on SystemExit #62

Merged

Conversation

dariofaccin
Copy link
Contributor

This PR aims to fix bessctl command hanging in some cases.
The original issue is tracked by canonical/sdcore-upf-operator#92.

The usage of os._exit(n) is not encouraged as exit handlers are not called and stdio buffer streams are not flushed; however, in this case, nothing is to be performed after this point.

@gatici
Copy link

gatici commented Jul 10, 2024

This PR is necessary to terminate the process on CLI in case errors are occurred. Otherwise, CLI just hangs and nothing can go forward.

@sureshmarikkannu sureshmarikkannu merged commit 550c2e3 into omec-project:master Jul 11, 2024
11 checks passed
@dariofaccin dariofaccin deleted the TELCO-1274-bessctl-hanging branch July 11, 2024 07:23
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