Navigation Menu

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

use os._exit instead of sys.exit when daemonizing #49303

Merged
merged 1 commit into from Aug 24, 2018

Commits on Aug 24, 2018

  1. use os._exit instead of sys.exit when daemonizing

    According to the docs [here](https://docs.python.org/3/library/os.html#os._exit)
    
    > `os._exit` should should normally only be used in the child process after a fork().
    
    This will exit the process with status n, without calling cleanup
    handlers, flushing stdio buffers, etc.
    
    Fixes saltstack/salt-ci-images#1075
    gtmanfred committed Aug 24, 2018
    Copy the full SHA
    e06ce49 View commit details
    Browse the repository at this point in the history