Skip to content

Commit

Permalink
Replace SIGKILL with SIGTERM (#2075)
Browse files Browse the repository at this point in the history
SIGTERM is the less invasive one, allowing the process to gracefully
shutdown on its own.
  • Loading branch information
matrss authored Nov 8, 2023
1 parent f6b3ad1 commit d19dde1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mslib/mscolab/mscolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def handle_mscolab_metadata_init(repo_exists):
cmd_curl = ["curl", "http://localhost:8083/metadata/localhost_test_idp",
"-o", f"{mscolab_settings.MSCOLAB_SSO_DIR}/metadata_sp.xml"]
subprocess.run(cmd_curl, check=True)
process.kill()
process.terminate()
print('mscolab metadata file generated succesfully')
return True

Expand Down

0 comments on commit d19dde1

Please sign in to comment.