@@ -668,19 +668,19 @@ def __init__(self, loop, pipe, protocol, waiter=None, extra=None):
668668 # On AIX, the reader trick (to be notified when the read end of the
669669 # socket is closed) only works for sockets. On other platforms it
670670 # works for pipes and sockets. (Exception: OS X 10.4? Issue #19294.)
671- # On macOS, the trick misfires for named FIFOs (but not for pipes
672- # created with os.pipe(), which have st_nlink == 0): the write end
673- # polls as readable whenever unread data sits in the FIFO, and no
671+ # On macOS and Solaris , the trick misfires for named FIFOs (but not for
672+ # pipes created with os.pipe(), which have st_nlink == 0): the write
673+ # end polls as readable whenever unread data sits in the FIFO, and no
674674 # event is delivered when the read end is closed, so it can only
675- # ever report a false disconnection (gh-145030). The same xnu
675+ # ever report a false disconnection (gh-145030). The same XNU
676676 # behaviour applies on iOS/tvOS/watchOS (sys.platform is not
677677 # "darwin" there).
678- is_named_fifo_on_apple = (
679- sys .platform in {"darwin" , "ios" , "tvos" , "watchos" }
678+ is_named_fifo_without_close_event = (
679+ sys .platform in {"darwin" , "ios" , "tvos" , "watchos" , "sunos5" }
680680 and is_fifo and pipe_stat .st_nlink > 0 )
681681 if is_socket or (is_fifo
682682 and not sys .platform .startswith ("aix" )
683- and not is_named_fifo_on_apple ):
683+ and not is_named_fifo_without_close_event ):
684684 # only start reading when connection_made() has been called
685685 self ._loop .call_soon (self ._loop ._add_reader ,
686686 self ._fileno , self ._read_ready )
0 commit comments