AlkantarClanX12
Current Path : /opt/alt/python35/lib64/python3.5/multiprocessing/__pycache__/ |
Current File : //opt/alt/python35/lib64/python3.5/multiprocessing/__pycache__/resource_sharer.cpython-35.opt-2.pyc |
���]� � @ s� d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d g Z e j d k r� e d g 7Z Gd d � d e � Z n# e d g 7Z Gd d � d e � Z Gd d � d e � Z e � Z e j Z d S)� N� )�process)� reduction)�util�stop�win32� DupSocketc @ s( e Z d Z d d � Z d d � Z d S)r c s: | j � � � f d d � } t j | � j � | _ d S)Nc s � j | � } | j | � d S)N)�share� send_bytes)�conn�pidr )�new_sock� �4/opt/alt/python35/lib64/python3.5/resource_sharer.py�send s z DupSocket.__init__.<locals>.send)�dup�_resource_sharer�register�close�_id)�self�sockr r )r r �__init__ s zDupSocket.__init__c C s9 t j | j � � } | j � } t j | � SWd QRXd S)N)r �get_connectionr � recv_bytes�socketZ fromshare)r r r r r r �detach$ s zDupSocket.detachN)�__name__� __module__�__qualname__r r r r r r r s �DupFdc @ s( e Z d Z d d � Z d d � Z d S)r c sL t j | � � � f d d � } � f d d � } t j | | � | _ d S)Nc s t j | � | � d S)N)r �send_handle)r r )�new_fdr r r 1 s zDupFd.__init__.<locals>.sendc s t j � � d S)N)�osr r )r"