We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53509a6 commit f7fd09dCopy full SHA for f7fd09d
bin/daemon.py
@@ -38,6 +38,7 @@
38
#
39
# Apache Phoenix note: this file is `daemon.py` from the package
40
# `python-daemon 2.0.5`, https://pypi.python.org/pypi/python-daemon/
41
+# Backported Python 3.8 fix in PHOENIX-6762
42
43
# The class `PidFile` was added for adapting the `lockfile` package's interface
44
# without depending on yet another 3rd party package. Based on example from
@@ -727,9 +728,8 @@ def is_socket(fd):
727
728
"""
729
result = False
730
- file_socket = socket.fromfd(fd, socket.AF_INET, socket.SOCK_RAW)
731
-
732
try:
+ file_socket = socket.fromfd(fd, socket.AF_INET, socket.SOCK_RAW)
733
socket_type = file_socket.getsockopt(
734
socket.SOL_SOCKET, socket.SO_TYPE)
735
except socket.error as exc:
0 commit comments