Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/multiprocessing/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/multiprocessing/__pycache__/resource_tracker.cpython-311.pyc
�

�,d
#���ddlZddlZddlZddlZddlZddlmZddlmZgd�Ze	ed��Z
ejejfZ
dd�iZejd	krLddlZddlZe	ed
��re�deji��e�deji��Gd
�de��Ze��ZejZejZejZejZd�ZdS)�N�)�spawn)�util)�ensure_running�register�
unregister�pthread_sigmask�noopc��dS�N�r
��G/opt/alt/python311/lib64/python3.11/multiprocessing/resource_tracker.py�<lambda>r!s��D�r�posix�
sem_unlink�	semaphore�
shared_memoryc�>�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	S)
�ResourceTrackerc�R�tj��|_d|_d|_dSr)�	threading�Lock�_lock�_fd�_pid��selfs r�__init__zResourceTracker.__init__8s#���^�%�%��
������	�	�	rc���|j5|j�	ddd��dStj|j��d|_tj|jd��d|_ddd��dS#1swxYwYdS)Nr)rr�os�close�waitpidrrs r�_stopzResourceTracker._stop=s���
�Z�
	�
	��x���
	�
	�
	�
	�
	�
	�
	�
	�
�H�T�X�����D�H��J�t�y�!�$�$�$��D�I�
	�
	�
	�
	�
	�
	�
	�
	�
	�
	�
	�
	����
	�
	�
	�
	�
	�
	s�	A,�AA,�,A0�3A0c�8�|���|jSr)rrrs r�getfdzResourceTracker.getfdJs���������x�rc��|j5|j��|���r	ddd��dStj|j��	|j�tj|jd��n#t$rYnwxYwd|_d|_tj	d��g}	|�
tj�
����n#t$rYnwxYwd}tj��\}}	|�
|��t!j��}|gt%j��z}|d||zgz
}	t(r$t+jt*jt0��t%j|||��}t(r$t+jt*jt0��n1#t(r%t+jt*jt0��wwxYw||_||_n#tj|���xYw	tj|��n#tj|��wxYw	ddd��dS#1swxYwYdS)z�Make sure that resource tracker process is running.

        This can be run from any process.  Usually a child process will use
        the resource created by its parent.NrzUresource_tracker: process died unexpectedly, relaunching.  Some resources might leak.z:from multiprocessing.resource_tracker import main;main(%d)z-c)rr�_check_aliver!r"rr#�ChildProcessError�warnings�warn�append�sys�stderr�fileno�	Exception�piper�get_executabler�_args_from_interpreter_flags�
_HAVE_SIGMASK�signalr	�	SIG_BLOCK�_IGNORED_SIGNALS�spawnv_passfds�SIG_UNBLOCK)r�fds_to_pass�cmd�r�w�exe�args�pids        rrzResourceTracker.ensure_runningNs���
�Z�9	�9	��x�#��$�$�&�&���9	�9	�9	�9	�9	�9	�9	�9	�����"�"�"���y�,��
�4�9�a�0�0�0���(�����D����� ��� ��	��
�I�J�J�J��K�
��"�"�3�:�#4�#4�#6�#6�7�7�7�7���
�
�
���
����N�C��7�9�9�D�A�q�
��"�"�1�%�%�%��*�,�,���u�t�@�B�B�B����s�Q�w��'��U�$�S��.�v�/?�AQ�R�R�R��-�c�4��E�E�C�$�U��.�v�/A�CS�T�T�T���%�U��.�v�/A�CS�T�T�T�T�U���������	�	��
�������������������������������s9	�9	�9	�9	�9	�9	�9	�9	�9	�9	�9	�9	����9	�9	�9	�9	�9	�9	s��I�I�!A.�-I�.
A;�8I�:A;�;'I�#1C�I�
C"�I�!C"�"I�>A	G5�AF5�	,G5�5.G#�#G5�&H%�5H�H%�I�%H;�;I�I�Ic�^�	tj|jd��dS#t$rYdSwxYw)z;Check that the pipe has not been closed by sending a probe.s
PROBE:0:noop
TF)r!�writer�OSErrorrs rr(zResourceTracker._check_alive�sI��	�
�H�T�X�0�1�1�1��4���	�	�	��5�5�	���s��
,�,c�4�|�d||��dS)z0Register name of resource with resource tracker.�REGISTERN��_send�r�name�rtypes   rrzResourceTracker.register�s���
�
�:�t�U�+�+�+�+�+rc�4�|�d||��dS)z2Unregister name of resource with resource tracker.�
UNREGISTERNrFrHs   rrzResourceTracker.unregister�s���
�
�<��u�-�-�-�-�-rc�v�|���d�|||���d��}t|��dkrt	d���tj|j|��}|t|��ks+Jd�|t|�������dS)Nz{0}:{1}:{2}
�asciiizmsg too longznbytes {0:n} but len(msg) {1:n})r�format�encode�len�
ValueErrorr!rBr)rr;rIrJ�msg�nbytess      rrGzResourceTracker._send�s����������$�$�S�$��6�6�=�=�g�F�F���s�8�8�c�>�>��^�,�,�,���$�(�C�(�(����S���!�!�!�#D�#K�#K��C��H�H�$�$�!�!�!�!�!rN)�__name__�
__module__�__qualname__rr$r&rr(rrrGr
rrrr6s����������
������>�>�>�@	�	�	�,�,�,�.�.�.�	�	�	�	�	rrc���tjtjtj��tjtjtj��tr$tjtjt��tj	tj
fD]'}	|����#t$rY�$wxYwd�t���D��}	t|d��5}|D�]	}	|����d���d��\}}}t�|d��}|�t)d|�d|�����|dkr||�|��n;|d	kr||�|��n|d
krnt/d|z�����#t$r,	tjtj���n#YnxYwY��wxYw	ddd��n#1swxYwY|���D]�\}}|r8	t7jdt;|��|fz��n#t$rYnwxYw|D]P}		t||��n1#t$r$}	t7jd
|�d|	����Yd}	~	nd}	~	wwxYw�L#wxYw��dS#|���D]�\}}|r8	t7jdt;|��|fz��n#t$rYnwxYw|D]P}		t||��n1#t$r$}	t7jd
|�d|	����Yd}	~	nd}	~	wwxYw�L#wxYw��wxYw)zRun resource tracker.c�,�i|]}|t����Sr
)�set)�.0rJs  r�
<dictcomp>zmain.<locals>.<dictcomp>�s��=�=�=�e�U�C�E�E�=�=�=r�rbrN�:NzCannot register z. for automatic cleanup: unknown resource type rErL�PROBEzunrecognized command %rzQresource_tracker: There appear to be %d leaked %s objects to clean up at shutdownzresource_tracker: z: )r5�SIGINT�SIG_IGN�SIGTERMr4r	r9r7r-�stdin�stdoutr"r0�_CLEANUP_FUNCS�keys�open�strip�decode�split�getrR�add�remove�RuntimeError�
excepthook�exc_info�itemsr*r+rQ)
�fd�f�cache�liner;rIrJ�cleanup_func�rtype_cache�es
          r�mainry�s����M�&�-���0�0�0�
�M�&�.�&�.�1�1�1��E���v�1�3C�D�D�D��i���
$����	�
�G�G�I�I�I�I���	�	�	��D�	����
>�=�~�':�':�'<�'<�=�=�=�E�-�
�"�d�^�^�	�q��
�
���'+�z�z�|�|�':�':�7�'C�'C�'I�'I�#�'N�'N�$�C��u�#1�#5�#5�e�T�#B�#B�L�#�+�(�=�t�=�=�5:�=�=�>�>�>��j�(�(��e��(�(��.�.�.�.���,�,��e��+�+�D�1�1�1�1������*�+D�s�+J�K�K�K��� �����������7�7�7����������	����#
�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�2#(�+�+�-�-�	�	��E�;��
���M�#N�#&�{�#3�#3�U�";�#<�=�=�=�=��!�����D�����#�

�

���N�&�u�-�d�3�3�3�3��$�N�N�N� �
�
�D�D�D�!�!�&L�M�M�M�M�M�M�M�M�����N������D�D�D�D�

�	�	��%�+�+�-�-�	�	��E�;��
���M�#N�#&�{�#3�#3�U�";�#<�=�=�=�=��!�����D�����#�

�

���N�&�u�-�d�3�3�3�3��$�N�N�N� �
�
�D�D�D�!�!�&L�M�M�M�M�M�M�M�M�����N������D�D�D�D�

�	���s!�B.�.
B;�:B;�"K�2H
�9C
G�H
�
G=�G2�1G=�2G6	�4G=�9H
�<G=�=H
�K�
H�K�H�K�4&I�
I(�'I(�1J�J9�
J5�J0�+J9�0J5�5J9�9J;�M*�&L�M*�
L	�M*�L	�M*�L1�0M#�1
M�;M�M#�M�M#�"M*�#M%�%M*)r!r5r-rr*�rr�__all__�hasattrr4r`rbr7rerI�_multiprocessing�_posixshmem�updater�
shm_unlink�objectr�_resource_trackerrrrr&ryr
rr�<module>r�s���$
�	�	�	�
�
�
�
�
�
�
�
���������������������
6�
6�
6����� 1�2�2�
��M�6�>�2���L�L����7�g������������w���.�.������)�4�
�	�	�	������/�����
t�t�t�t�t�f�t�t�t�n$�O�%�%��"�1���%��
�
)�
����<�<�<�<�<r

ZeroDay Forums Mini