|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/test/__pycache__/ |
U
>��g
� @ sZ d Z ddlZddlZddlZddlZddlZddlmZ dZdZ dZ
G dd� dej�ZdS )ar This test case provides support for checking forking and wait behavior.
To test different wait behavior, override the wait_impl method.
We want fork1() semantics -- only the forking thread survives in the
child after a fork().
On some systems (e.g. Solaris without posix threads) we find that all
active threads survive in the child after a fork(); this is an error.
� N� g �?� c @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� ZdS )�ForkWaitc C s t �� | _i | _d| _g | _d S )Nr )�supportZthreading_setup�_threading_key�alive�stop�threads)�self� r �-/opt/cppython/lib/python3.8/test/fork_wait.py�setUp s
zForkWait.setUpc C s8 d| _ | jD ]}|�� qd }| j�� tj| j� d S )N� )r r �join�clearr Zthreading_cleanupr )r
�threadr r r �tearDown s
zForkWait.tearDownc C s>