+
    8i                       R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIHtH	t	H
t
 ^
t]P                  P                  ]4      tR R ltR R lt]P$                  R8X  d   ]! ]R	^4      tR
 R ltR# R R ltR R ltR R lt]R8X  dU   ]! ]R4      '       d    ]P4                  ! 4        ]! ]! ]P8                  R,          4      4       ]P:                  ! ^ 4       R# R#   ] d     L>i ; i)ac  Support for spawning a daemon process.

PyMongo only attempts to spawn the mongocryptd daemon process when automatic
client-side field level encryption is enabled. See
`Client-side Field Level Encryption <https://www.mongodb.com/docs/languages/python/pymongo-driver/current/security/in-use-encryption/#client-side-field-level-encryption>`_ for more info.
)annotationsN)AnyOptionalSequencec               $    V ^8  d   QhRRRRRR/# )   popenzsubprocess.Popen[Any]timeoutzOptional[float]returnzOptional[int] )formats   "L/var/www/html/photoedit/myenv/lib/python3.14/site-packages/pymongo/daemon.py__annotate__r   "   s"      ,  =     c                `     V P                  VR7      #   \        P                   d     R# i ; i)z,Implement wait timeout support for Python 3.)r	   N)wait
subprocessTimeoutExpired)r   r	   s   &&r   _popen_waitr   "   s0    zz'z**$$ s    --c                    V ^8  d   QhRRRR/# )r   r   Optional[subprocess.Popen[Any]]r
   Noner   )r   s   "r   r   r   +   s      %D  r   c                     V e
   ^ V n         R# R# )zhSilence Popen's ResourceWarning.

Note this should only be used if the process was created as a daemon.
N)
returncode)r   s   &r   _silence_resource_warningr   +   s      r   win32DETACHED_PROCESSc                    V ^8  d   QhRRRR/# r   argsSequence[str]r
   r   r   )r   s   "r   r   r   =   s      M d r   c           
     `    \        \        P                  R4      ;_uu_ 4       p\        P                  ! V \
        VVVR7      p\        V4       RRR4       R#   + '       g   i     R# ; i  \         d6   p\        P                  ! RT ^ ,           RT 2\        ^R7        Rp?R# Rp?ii ; i)z!Spawn a daemon process (Windows).r+b)creationflagsstdinstderrstdoutNFailed to start +: is it on your $PATH?
Original exception: 
stacklevel)openosdevnullr   Popen_DETACHED_PROCESSr   FileNotFoundErrorwarningswarnRuntimeWarning)r   r-   r   excs   &   r   _spawn_daemonr5   =   s    	bjj%((G"(("3!"" *%0 )((( ! 	MM"47)+WX[W\] 	s4   "A- +AA- A*	$A- *A- -B-8*B((B-c                    V ^8  d   QhRRRR/# )r   r   r    r
   r   r   )r   s   "r   r   r   \   s      ] 'F r   c           
     B    \        \        P                  R4      ;_uu_ 4       p\        P                  ! V RVVVR7      uuRRR4       #   + '       g   i     R# ; i  \
         d6   p\        P                  ! RT ^ ,           RT 2\        ^R7        Rp?R# Rp?ii ; i)z,Spawn the process and silence stdout/stderr.r"   T)	close_fdsr$   r%   r&   Nr'   r(   r)   )	r+   r,   r-   r   r.   r0   r1   r2   r3   )r   r-   r4   s   &  r   _spawnr9   \   s    	bjj%((G!''"!"" )(((  ! 	MM"47)+WX[W\] 
 	s3   "A A

A 
A	A A B)*BBc                    V ^8  d   QhRRRR/# r   r   )r   s   "r   r   r   o   s     . . .4 .r   c                    \         P                  \        .pVP                  V 4       \        P
                  ! VRR7      p\        V\        4       R# )z7Spawn a daemon process using a double subprocess.Popen.T)r8   N)sys
executable
_THIS_FILEextendr   r.   r   _WAIT_TIMEOUT)r   spawner_args	temp_procs   &  r   _spawn_daemon_double_popenrC   o   s<    
3D!$$\TB	 	I}-r   c                    V ^8  d   QhRRRR/# r   r   )r   s   "r   r   r   x   s      M d r   c                b    \         P                  '       d   \        V 4       R# \        V 4       R# )zSpawn a daemon process (Unix).N)r<   r=   rC   r9   )r   s   &r   r5   r5   x   s     >>>&t, 4Lr   __main__setsid:   NN)__doc__
__future__r   r,   r   r<   r1   typingr   r   r   r@   pathrealpath__file__r>   r   r   platformgetattrr/   r5   r9   rC   __name__hasattrrG   OSErrorargv_exitr   r   r   <module>rV      s    # 	  
  * * WWh'
 <<7
,>
K>&." :2x  		 	"&""67
 
  s   C C('C(