python (3.11.7)
    e                     |    d Z ddlZddlZddlZddlZddlZddlmZ ddlm	Z	 dZ
dZdZ G d d	ej
                  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)support)threading_helper   g      ?   c                   ,    e Zd Zd Zd Zd Zd Zd ZdS )ForkWaitc                 `    t          j                    | _        i | _        d| _        g | _        d S )Nr   )r   threading_setup_threading_keyalivestopthreads)selfs    B/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/fork_wait.pysetUpzForkWait.setUp   s,    .>@@
	    c                     d| _         | j        D ]}|                                 d }| j                                         t	          j        | j          d S )N   )r
   r   joinclearr   threading_cleanupr   )r   threads     r   tearDownzForkWait.tearDown   sY    	l 	 	FKKMMMM*D,?@@@@r   c                     | j         sOt          j                    | j        |<