403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/gi/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/gi/__pycache__/_ossighelper.cpython-39.pyc
a

b�^��@s�ddlmZddlZddlZddlZddlZddlmZmZddl	m
Z
dd�Zdaed	d
��Z
e
jZe�ej�ejur�eej�ZndZdd
�Zedd��Zdd�Zgadaedd��ZdS)�)�print_functionN)�closing�contextmanager�)�_gicCsnt|d�r|�d�nTzddl}Wnty<td��Yn.0|��}|�||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_inheritableFrNz+Not implemented for older Python on Windows)	�hasattrr�fcntl�ImportError�NotImplementedError�filenoZF_GETFDZF_SETFDZ
FD_CLOEXEC)�sockr	�fd�flags�r�5/usr/lib64/python3.9/site-packages/gi/_ossighelper.py�ensure_socket_not_inheritables
�
rFc#s�trdVdSddlm�t��\�}t�����t|���X�|fD]}|�d�t|�qFzt�	|�
��}Wn2ty�dVYWd�Wd�dS0da��fdd�}z�tj
dkrԈj���
��}n�j���
��}��|�j�jj�jjB�jjB�jjB|�}zdVW��|�n��|�0Wt�	|�}||�
�k�rXt�	|�dan(t�	|�}||�
�k�r�t�	|�da0Wd�n1�s�0YWd�n1�s�0YdS)	a�A decorator for functions which create a glib event loop to keep
    Python signal handlers working while the event loop is idling.

    In case an OS signal is received will wake the default event loop up
    shortly so that any registered Python signal handlers registered through
    signal.signal() can run.

    In case the wrapped function is not called from the main thread it will be
    called as is and it will not wake up the default loop for signals.
    Nr)�GLibFTc
sV|�j@rNzt��d��WStyH}zt|�WYd}~dSd}~00dSdSdS)NrFT)ZIO_IN�boolZrecv�EnvironmentError�print)�sourceZ	condition�e�rZread_socketrr�
signal_notify\s
z'wakeup_on_signal.<locals>.signal_notify�nt)�_wakeup_fd_is_activeZ
gi.repositoryr�socketZ
socketpairrZsetblockingr�signal�
set_wakeup_fdr�
ValueError�os�nameZ	IOChannelZwin32_new_socketZunix_newZio_add_watchZPRIORITY_DEFAULTZIOCondition�INZHUPZNVALZERRZ
source_remove)Zwrite_socketr
Zorig_fdrZchannelZ	source_idZwrite_fdrrr�wakeup_on_signal7sV

 
����

�

r$���cCs t�tj�tjuottj�tkS)z?Returns if on SIGINT the default Python handler would be called)r�	getsignal�SIGINT�default_int_handler�PyOS_getsig�startup_sigint_ptrrrrr�sigint_handler_is_default�s�r+c
cs�t�s
J�t�tj|�ttj�}z8dVWt�tj�|ur�ttj�|kr�t�tjtj�n0t�tj�|ur�ttj�|kr�t�tjtj�0dS)z�Context manager for saving/restoring the SIGINT handler default state.

    Will only restore the default handler again if the handler is not changed
    while the context is active.
    N)r+rr'r)r&r()ZhandlerZsig_ptrrrr�&sigint_handler_set_and_restore_default�s

���r,cCst��jdkS)z@Returns True in case the function is called from the main thread�
MainThread)�	threading�current_threadr"rrrr�is_main_thread�sr0c
cs�t�sdVdSt�sbtrXt�|�zdVWt��}trV|�q^t��}trT|�0ndVdSdadd�}t�|�zNt|��dVWd�n1s�0YWtr�t�tj	d�q�t��ntr�t�tj	d�nt��0dS)a�Installs a SIGINT signal handler in case the default Python one is
    active which calls 'callback' in case the signal occurs.

    Only does something if called from the main thread.

    In case of nested context managers the signal handler will be only
    installed once and the callbacks will be called in the reverse order
    of their registration.

    The old signal handler will be restored in case no signal handler is
    registered while the context is active.
    NFcSstrdSdat���dS)NT)�_sigint_called�_callback_stack�pop)Zsig_num�framerrr�sigint_handler�sz0register_sigint_fallback.<locals>.sigint_handler)
r0r+r2�appendr3r1r,rr(r')�callback�cbr5rrr�register_sigint_fallback�s8
�


&
�r9)Z
__future__rr!rrr.�
contextlibrr�rrrr$Zpyos_getsigr)r&r'r(r*r+r,r0r2r1r9rrrr�<module>s,
I


Youez - 2016 - github.com/yon3zu
LinuXploit