
    JTh                     Z    S SK r S/r\ R                  S:X  a
  S SKJr  S rOS SKrS rS rg)    Nregister_after_forkwin32c                 H   ^  U 4S jn[         R                  " [        U5        g )Nc                    > T" 5         g )N )argfuncs    U/var/www/auris/envauris/lib/python3.13/site-packages/torch/multiprocessing/_atfork.pywrapper_register.<locals>.wrapper   s    F    )_utilr   	_register)r	   r   s   ` r
   r   r   
   s    	 	!!)W5r   c                 ,    [         R                  " U S9  g )N)after_in_child)osregister_at_forkr	   s    r
   r   r      s    
40r   c                     [        U 5        g)aL  Register a callable to be executed in the child process after a fork.

Note:
    In python < 3.7 this will only work with processes created using the
    ``multiprocessing`` module. In python >= 3.7 it also works with
    ``os.fork()``.

Args:
    func (function): Function taking no arguments to be called in the child after fork

N)r   r   s    r
   r   r      s     dOr   )	sys__all__platformmultiprocessing.utilutilr   r   r   r   r   r   r
   <module>r      s5    
 !
!<<7(6 1r   