Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/tornado/__pycache__/process.cpython-39.pyc
Ðазад
a _�h�3 � @ sD d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z ddl mZmZm Z ddlmZ ddlmZ ddlmZ ddlmZ dd lmZ ddlZdd lmZmZmZmZ ejr�ddlmZ ejZe d�d d�Z!dd�dd�Z"ee e f d�dd�Z#da$dee e e d�dd�Z%ee d�dd�Z&G dd� de'�Z(dS )z�Utilities for working with multiple processes, including both forking the server into multiple processes and managing subprocesses. � N)�hexlify)�Future�"future_set_result_unless_cancelled�%future_set_exception_unless_cancelled)�ioloop)�PipeIOStream)�gen_log)�set_close_exec)�errno_from_exception)�Tuple�Optional�Any�Callable)�List��returnc C s\ t du rdS z t �� W S ty( Y n0 zt�d�W S ttfyL Y n0 t�d� dS )z1Returns the number of processors on this machine.N� �SC_NPROCESSORS_CONFz1Could not detect number of processors; assuming 1) �multiprocessing� cpu_count�NotImplementedError�os�sysconf�AttributeError� ValueErrorr �error� r r �/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/tornado/process.pyr 3 s r c C sh dt jvrd S dd l} zttt�d��d�}W n* tyX tt�� d �t� � A }Y n0 | � |� d S )N�randomr � i� )�sys�modulesr �intr r �urandomr �time�getpid�seed)r r&