Fixed #128: Could not use file descriptor 0

This commit is contained in:
Andrew Godwin 2017-07-24 10:41:54 -07:00
parent cf7e7f3924
commit 8fd8f794a4

View File

@ -215,7 +215,7 @@ def build_endpoint_description_strings(
if unix_socket: if unix_socket:
socket_descriptions.append('unix:%s' % unix_socket) socket_descriptions.append('unix:%s' % unix_socket)
if file_descriptor: if file_descriptor is not None:
socket_descriptions.append('fd:fileno=%d' % int(file_descriptor)) socket_descriptions.append('fd:fileno=%d' % int(file_descriptor))
return socket_descriptions return socket_descriptions