commit | 2cf11dce4f00c9562a84b4c4a0aa2a31d0969b2b | [log] [tgz] |
---|---|---|
author | Gregory P. Smith [Google LLC] <gps@google.com> | Fri Jul 08 08:27:23 2022 -0700 |
committer | Gregory P. Smith [Google LLC] <gps@google.com> | Fri Jul 08 08:27:23 2022 -0700 |
tree | e173e59a01991c34d4d50495d4dfd5fbdfaac3be | |
parent | edcd88408dfde0247ce598b4075c2c128a72d074 [diff] |
Use os._exit in the child instead of sys.exit.
diff --git a/src/portpicker.py b/src/portpicker.py index 10b373d..a887781 100644 --- a/src/portpicker.py +++ b/src/portpicker.py
@@ -280,7 +280,7 @@ for held_socket in bound_sockets: held_socket.close() finally: - sys.exit(0) + os._exit(0) def _pick_unused_port_without_server(bind_timeout=0):