관리-도구
편집 파일: _ossighelper.cpython-36.pyc
3 ��<_�! � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlm Z m Z dd� Zdae dd� �Z d d � Ze� ZejZeje_ejge_ejej�ejkr�eej�ZndZdd � Ze dd� �Zdd� Zg adae dd� �ZdS )� )�print_functionN)�closing�contextmanagerc C sp t | d�r| jd� nVyddl}W n tk r> td��Y n.X | j� }|j||j�}|j||j||jB � dS )z�Ensures that the socket is not inherited by child processes Raises: EnvironmentError NotImplementedError: With Python <3.4 on Windows �set_inheritableFr Nz+Not implemented for older Python on Windows) �hasattrr �fcntl�ImportError�NotImplementedError�filenoZF_GETFDZF_SETFDZ FD_CLOEXEC)�sockr �fd�flags� r �$/usr/lib64/python3.6/_ossighelper.py�ensure_socket_not_inheritable s r Fc '