+
     Bi                     n   ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIHtHt ^RIH	t	H
t
Ht ^RIHt ^RIHt R.tRt]P"                  R8H  ;'       d    ]! ]R	R
4      t]P(                  P+                  4       P-                  R4      tR t]! ]P(                  ]P2                  4      '       * tR t ! R R]4      tR# )    N)STARTUPINFOSTARTF_FORCEOFFFEEDBACK)	reductionget_spawning_popenset_spawning_popen)spawn)utilPopeni   win32frozenFzpythonservice.exec                     W8H  ;'       g@    \         P                  P                  V 4      \         P                  P                  V4      8H  # N)ospathnormcase)p1p2s   &&8/usr/lib/python3.14/multiprocessing/popen_spawn_win32.py_path_eqr      s5    8CCrww''+rww/?/?/CCC    c                  D    V  F  p\         P                  ! V4       K  	  R # r   )_winapiCloseHandle)handleshandles   * r   _close_handlesr      s    F# r   c                   T   a  ] tR t^(t o RtRtR tR tRR ltR t	R t
]
tR	 tR
tV tR# )r
   z8
Start a subprocess to run the code of a process object
r   c                   \         P                  ! VP                  4      p\        P                  ! R ^ 4      w  r4\
        P                  ! V^ 4      p\         P                  ! \        P                  ! 4       VR7      p\         P                  ! 4       p\        '       dh   \        V\        P                  4      '       dH   \        P                  ;V^ &   p\        P                   P#                  4       p\        P                  VR&   MR pRP%                  R V 4       4      p\'        VRRR7      ;_uu_ 4       p	 \        P(                  ! WvR R R^ VR \+        \,        R	7      4	      w  rr\        P.                  ! V4       Yn        R T n        Yn        \7        T
4      T n        \:        P<                  ! T \>        T P8                  \7        T4      34      T n         \C        T 4        \D        PF                  ! Y)4       \D        PF                  ! Y4       \C        R 4        R R R 4       R #    \        P.                  ! T4       h ; i  \C        R 4       i ; i  + '       g   i     R # ; i)
N)
parent_pidpipe_handle__PYVENV_LAUNCHER__ c              3   4   "   T F  pR V,          x  K  	  R# 5i)z"%s"N ).0xs   & r   	<genexpr>!Popen.__init__.<locals>.<genexpr>G   s     /3avzz3s   wbT)closefdF)dwFlags)$r   get_preparation_data_namer   
CreatePipemsvcrtopen_osfhandleget_command_liner   getpidget_executableWINENVr   sys
executable_base_executableenvironcopyjoinopenCreateProcessr   r   r   pid
returncode_handleintsentinelr	   Finalizer   	finalizerr   r   dump)selfprocess_obj	prep_datarhandlewhandlewfdcmd
python_exeenvto_childhphtr=   tids   &&            r   __init__Popen.__init__.   s   ..{/@/@A	 #--dA6##GQ/$$		18: ))+
 6hz3>>::"%"6"66CFZ**//#C),C%&Chh/3//#tT**h#*#8#8$q#t(?@$B  ##B' H"DOLGDM!]]4,0MM3w<+HJDN t$)y3{5"4(5 +*##G,  #4(5 +**s>   4I6AH!:A$I,H=I!H::I=I

II	c                B    \         P                  ! WP                  4      # r   )r   	duplicaterA   )rE   r   s   &&r   duplicate_for_childPopen.duplicate_for_childe   s    ""6==99r   Nc                   V P                   e   V P                   # Vf   \        P                  pM#\        ^ \	        VR,          R,           4      4      p\        P
                  ! \	        V P                  4      V4      pV\        P                  8X  dC   \        P                  ! V P                  4      pV\        8X  d   \        P                  ) pW@n         V P                   # )Ni  g      ?)r>   r   INFINITEmaxr@   WaitForSingleObjectr?   WAIT_OBJECT_0GetExitCodeProcess	TERMINATEsignalSIGTERM)rE   timeoutmsecsrescodes   &&   r   wait
Popen.waiti   s    ??&??"?$$E3w~345E))#dll*;UC''''--dll;Dy "Or   c                &    V P                  ^ R7      # )r   )ra   )re   rE   s   &r   poll
Popen.poll{   s    yyy##r   c                &   V P                   e   R #  \        P                  ! \        V P                  4      \
        4       R #   \         dD    \        P                  ! \        T P                  4      4      pT\        P                  8X  d   h  R # i ; ir   )	r>   r   TerminateProcessr@   r?   r^   PermissionErrorr]   STILL_ACTIVE)rE   rd   s   & r   	terminatePopen.terminate~   sm    ??&	$$S%6	B 	 --c$,,.?@Dw+++ ,		s   .A A
BBc                &    V P                  4        R # r   )rC   rh   s   &r   closePopen.close   s    r   )r?   rC   r=   r>   rA   r   )__name__
__module____qualname____firstlineno____doc__methodrR   rV   re   ri   ro   killrr   __static_attributes____classdictcell__)__classdict__s   @r   r
   r
   (   s<      F5)n:$$$ D r   )r   r/   r_   r5   r   
subprocessr   r   contextr   r   r    r   r	   __all__r^   platformgetattrWINEXEr6   lowerendswith
WINSERVICEr   r7   r4   r   objectr
   r$   r   r   <module>r      s    	   
  ; F F  ) 	
,,'
!
C
Cgc8U&C^^!!#,,-@A
D cnnc&:&:;	;$kF kr   