Ë
    êmxi�  ã                  ó‚   — d dl mZ d dlZd dlmZ d dlmZ er
d dlZd dlmZ  ej                  e
«      Z G d„ de«      Zy)é    )ÚannotationsN)ÚTYPE_CHECKING)Ú
BaseThread)ÚCallablec                  ó(   ‡ — e Zd Zdˆ fd„Zdd„Zˆ xZS )ÚProcessWatcherc                ó>   •— t         ‰| �  «        || _        || _        y )N)ÚsuperÚ__init__Ú	popen_objÚprocess_termination_callback)Úselfr   r   Ú	__class__s      €úU/home/htdocs/ttos/venv/lib/python3.12/site-packages/watchdog/utils/process_watcher.pyr   zProcessWatcher.__init__   s   ø€ Ü‰ÑÔØ"ˆŒØ,HˆÕ)ó    c                ób  — | j                   j                  «       €8| j                  j                  d¬«      ry | j                   j                  «       €Œ8	 | j                  j	                  «       s| j
                  r| j                  «        y y y # t        $ r t        j                  d«       Y y w xY w)Ngš™™™™™¹?)Útimeoutz*Error calling process termination callback)	r   ÚpollÚstopped_eventÚwaitÚis_setr   Ú	ExceptionÚloggerÚ	exception)r   s    r   ÚrunzProcessWatcher.run   s™   € Ø�n‰n×!Ñ!Ó#Ð+Ø×!Ñ!×&Ñ&¨sÐ&Ô3Øð �n‰n×!Ñ!Ó#Ñ+ð	KØ×%Ñ%×,Ñ,Ô.°4×3TÒ3TØ×1Ñ1Õ3ð 4UÐ.øäò 	KÜ×ÑÐIÖJð	Kús   Á6B ÂB.Â-B.)r   zsubprocess.Popenr   zCallable[[], None] | NoneÚreturnÚNone)r   r   )Ú__name__Ú
__module__Ú__qualname__r   r   Ú__classcell__)r   s   @r   r   r      s   ø„ õI÷
	Kr   r   )Ú
__future__r   ÚloggingÚtypingr   Úwatchdog.utilsr   Ú
subprocessr   Ú	getLoggerr   r   r   © r   r   ú<module>r)      s:   ðÝ "ã Ý  å %áÛÝà	ˆ×	Ñ	˜8Ó	$€ôK�Zõ Kr   