MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/paste/util/__pycache__/killthread.cpython-37.pyc
B

b�N��@sTdZddlZyddlZWnek
r4ed��YnXeed�sHed��dd�ZdS)zB
Kill a thread, from http://sebulba.wikispaces.com/recipe+thread2
�Nz=You cannot use paste.util.killthread without ctypes installed�	pythonapiz=You cannot use paste.util.killthread without ctypes.pythonapicCs~t|tjtf�std��t|t�s*td��tj�t�	|�t�
|��}|dkrVtd��n$|dkrztj�t�	|�d�td��dS)z�raises the exception, performs cleanup if needed.

    tid is the value given by thread.get_ident() (an integer).
    Raise SystemExit to kill a thread.z(Only types can be raised (not instances)ztid must be an integerrzinvalid thread id�z PyThreadState_SetAsyncExc failedN)
�
isinstance�typesZ	ClassType�type�	TypeError�int�ctypesrZPyThreadState_SetAsyncExc�c_long�	py_object�
ValueError�SystemError)�tid�exctype�res�r�F/opt/alt/python37/lib/python3.7/site-packages/paste/util/killthread.py�async_raises

r)�__doc__rr	�ImportError�hasattrrrrrr�<module>s