
    <e                         	 d dl Z d dlZd dlZd dlZd dlmZ d dlmZ ej        s ej	        d           ej
        e d            G d de          Zd Zed	k    r ej                     dS dS )
    N)ForkWait)supportzrequires working os.fork()wait4c                       e Zd Zd ZdS )	Wait4Testc                
   t           j        }t          j                            d          rd}t          j                    t          j        z   }t          j                    |k    rKt          j	        ||          \  }}}||k    rn+t          j
        d           t          j                    |k    K|                     ||           |                     t          j        |          |           |                     |           d S )Naixr   g?)osWNOHANGsysplatform
startswithtime	monotonicr   SHORT_TIMEOUTr   sleepassertEqualwaitstatus_to_exitcode
assertTrue)selfcpidexitcodeoptiondeadlinespidstatusrusages           &/usr/lib/python3.11/test/test_wait4.py	wait_implzWait4Test.wait_impl   s    <""5)) 	 F>##g&;;n(** $&8D&#9#9 D&&t||JsOOO n(** 	t$$$26::HEEE    N)__name__
__module____qualname__r    r    r   r   r      s#                 r    r   c                  ,    t          j                     d S )N)r   reap_childrenr$   r    r   tearDownModuler'   %   s    r    __main__)r
   r   r   unittesttest.fork_waitr   testr   has_fork_supportSkipTestget_attributer   r'   r!   mainr$   r    r   <module>r0      s    
			  



  # # # # # #        :
(
8
9
99  b' " " "               &   zHMOOOOO r    