
    HWh                     $    S SK r S SKrS rSS jrg)    Nc                 b   1 U kSiSin  [         R                  " S5       Vs1 s H  n[        U5      iM     nnX -
   H  n [         R                  " U5        M     gs  snf ! [         a2    SSKnUR                  UR                  5      S   n1 [        U5      kn Ncf = f! [         a     Mp  f = f)z8Close all the file descriptors except those in keep_fds.      z/proc/self/fdr   N)
oslistdirintFileNotFoundErrorresource	getrlimitRLIMIT_NOFILErangecloseOSError)keep_fdsfdopen_fdsr
   max_nfdsis         I/usr/lib/python3/dist-packages/joblib/externals/loky/backend/fork_exec.py	close_fdsr      s     ! 1 a H&&(jj&AB&ACG&AB  	HHQK ! C &%%h&<&<=a@%U8_%	&  		s3   A! AA! B A! !9BB 
B.-B.c                     U=(       d    0 n0 [         R                  EUEn[         R                  " 5       nUS:X  a1  [        U5        [         R                  " [
        R                  X5        g U$ )Nr   )r   environforkr   execvesys
executable)cmdr   env	child_envpids        r   	fork_execr!   !   sO    
)C%2::%%I
'')C
ax(
		#..#1
    )N)r   r   r   r!    r"   r   <module>r$      s    
 
,
r"   