diff --git a/bin/daemon.py b/bin/daemon.py index a548ec6..4cbb22f 100644 --- a/bin/daemon.py +++ b/bin/daemon.py @@ -38,6 +38,7 @@ # # Apache Phoenix note: this file is `daemon.py` from the package # `python-daemon 2.0.5`, https://pypi.python.org/pypi/python-daemon/ +# Backported Python 3.8 fix in PHOENIX-6762 # # The class `PidFile` was added for adapting the `lockfile` package's interface # without depending on yet another 3rd party package. Based on example from @@ -727,9 +728,8 @@ def is_socket(fd): """ result = False - file_socket = socket.fromfd(fd, socket.AF_INET, socket.SOCK_RAW) - try: + file_socket = socket.fromfd(fd, socket.AF_INET, socket.SOCK_RAW) socket_type = file_socket.getsockopt( socket.SOL_SOCKET, socket.SO_TYPE) except socket.error as exc: