Ë
    =Gìj÷  ã                   ó6   — d Z ddlZddlZdd„Zdeez  ddfd„Zy)zFA tiny stand alone library to change the kernel process name on Linux.é    NÚreturnc                  óv   — t        t        j                  j                  t        j
                  d   «      «       y)zDSets the process name to something better than 'python' if possible.r   N)Úset_kernel_process_nameÚosÚpathÚbasenameÚsysÚargv© ó    úUC:\Users\Stabi\Downloads\virtual-tryon(1)\venv\Lib\site-packages\absl/command_name.pyÚmake_process_name_usefulr      s!   € äœ"Ÿ'™'×*Ñ*¬3¯8©8°A©;Ó7Õ8r   Únamec                 óÔ  — t        | t        «      s| j                  dd«      } 	 t        dd«      5 }|j	                  | dd «       ddd«       y# 1 sw Y   yxY w# t
        $ r„ 	 ddl}n# t        $ r Y Y yw xY w	 |j                  d«      }n# t
        $ r Y Y yw xY w|j                  d«      }|j                  d«      }	 |j                  || |||«       Y y# t        $ r Y Y yw xY ww xY w)	aÞ  Changes the Kernel's /proc/self/status process name on Linux.

  The kernel name is NOT what will be shown by the ps or top command.
  It is a 15 character string stored in the kernel's process table that
  is included in the kernel log when a process is OOM killed.
  The first 15 bytes of name are used. Non-ASCII unicode is replaced with '?'.

  Does nothing if /proc/self/comm cannot be written or prctl() fails.

  Args:
    name: The Linux kernel's command name to set.
  ÚasciiÚreplacez/proc/self/commÚwbNé   r   z	libc.so.6)Ú
isinstanceÚbytesÚencodeÚopenÚwriteÚOSErrorÚctypesÚImportErrorÚCDLLÚc_ulongÚprctlÚAttributeError)r   Ú	proc_commr   ÚlibcÚpr_set_nameÚzeros         r   r   r      sâ   € ô 
�Dœ%Ô	 Ø�;‰;�w 	Ó*€Dðä	Ð Ô	&¨)Ø‡o�o�d˜3˜B�iÔ ÷ 
'×	&Ñ	&ûä	ò ðÜøÜò ÚðúðØ�[‰[˜Ó%�døÜò Úðúà—.‘. Ó$€KØ�>‰>˜!Ó€DðØ
‡j�j�˜d D¨$°Ö5øäò ÚðúðúsŽ   ¤A °AÁA ÁAÁA ÁA Á	C'Á$A)Á(C'Á)	A6Á2C'Á5A6Á6C'Á:BÂC'Â	BÂC'ÂBÂ%C'Â?CÃ	C#ÃC'Ã"C#Ã#C')r   N)Ú__doc__r   r	   r   Ústrr   r   r   r   r   Ú<module>r'      s-   ðñ Mã 	Û 
ó9ð
" #¨¡+ð "°$ô "r   