5875ba7
Use `is_socket_file` for detecting socket on standard input. This allows for conditions where the stream file object is already closed.