Your IP : 3.142.172.250
o
6��f�� � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ dd l
mZ dd
l
mZ ddl
mZ ddl
mZ dd
l
mZ ddlmZ dZe
jdkred��dd� Zdd� ZG dd� dej�Z G dd� dej!�Z"G dd� dej#ej$�Z%G dd� dej&�Z'G dd� d�Z(G d d!� d!e(�Z)G d"d#� d#e(�Z*G d$d%� d%e*�Z+G d&d'� d'e*�Z,G d(d)� d)e(�Z-G d*d+� d+e(�Z.G d,d-� d-ej/�Z0e Z1e0Z2dS ).z2Selector event loop for Unix with signal handling.� N� )�base_events)�base_subprocess)� constants)�
coroutines)�events)�
exceptions)�futures)�selector_events)�tasks)�
transports)�logger)�SelectorEventLoop�AbstractChildWatcher�SafeChildWatcher�FastChildWatcher�PidfdChildWatcher�MultiLoopChildWatcher�ThreadedChildWatcher�DefaultEventLoopPolicyZwin32z+Signals are not really supported on Windowsc C � dS )zDummy signal handler.N� )�signum�framer r �:/opt/alt/python310/lib64/python3.10/asyncio/unix_events.py�_sighandler_noop* s r c C s$ zt �| �W S ty | Y S w �N)�os�waitstatus_to_exitcode�
ValueError)�statusr r r r / s
�r c s� e Zd ZdZd)� fdd� Z� fdd�Zdd� Zd d
� Zdd� Zd
d� Z dd� Z
d*dd�Z d*dd�Z d)dd�Z
dd� Z d)ddddd�dd�Z d)dddddd�dd �Zd!d"� Zd#d$� Zd%d&� Zd'd(� Z� ZS )+�_UnixSelectorEventLoopzdUnix event loop.
Adds signal handling and UNIX Domain Socket support to SelectorEventLoop.
Nc s t � �|� i | _d S r )�super�__init__�_signal_handlers)�self�selector�� __class__r r r# ? �
z_UnixSelectorEventLoop.__init__c s` t � �� t�� st| j�D ]}| �|� qd S | jr.tjd| �d�t | d� | j�
� d S d S )NzClosing the loop z@ on interpreter shutdown stage, skipping signal handlers removal��source)r"