| Server IP : 118.27.122.248 / Your IP : 216.73.216.124 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/test/__pycache__/ |
Upload File : |
3 �w2_� � @ s� d Z ddlZddlZddlZddlZddlZddlZddlm Z ddl mZmZm Z mZ e d�Zeed� G dd� de �Zd d � Zedkr�ej� dS )z.This test checks for correct fork() behavior. � N)�ForkWait)� reap_children� get_attribute� import_module�verbose� threading�forkc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�ForkTestc C sr t j� d }x6t j� |krBtj|tj�\}}||kr6P t jd� qW | j||� | j|dd|d@ |d? f � d S )Ng $@g�������?r zcause = %d, exit = %d� � )�timeZ monotonic�os�waitpid�WNOHANG�sleepZassertEqual)�selfZcpidZdeadlineZspidZstatus� r �4/opt/alt/python36/lib64/python3.6/test/test_fork1.py� wait_impl s zForkTest.wait_implc s� t j� �d�d�d� � ���fdd�}t j|d�}|j� �j� tj� }zR|s�t��}|� krltjd� q�t dkr|t d � tjd� n|j� | j|� W d ytj |tj� W n tk r� Y nX X d S )zFCheck fork() in main thread works while a subthread is doing an importzfake test module�partialZcompletec s: t j� �tj�<