+
    –°³j	  ã                  ó6   € R t ^ RIHt RR.tR R ltR R ltR# )	z©Helpers for inspecting Linux process state from ``/proc``.

These are intentionally agent-agnostic so they can be reused outside of
``torch.distributed.elastic.agent``.
)ÚannotationsÚread_proc_stateÚis_uninterruptible_statec               ó    € V ^8„  d   QhRRRR/# )é   ÚpidÚintÚreturnú
str | None© )Úformats   "Ún/home/luca/screen-checking/.venv/lib/python3.14/site-packages/torch/distributed/elastic/utils/process_state.pyÚ__annotate__r      s   € ÷ ñ ˜ð  ñ ó    c                ó:  €  \        RV  R24      ;_uu_ 4       pVP                  4       pRRR4       XP                  R4      pVR8X  d   R# W#^,           R P                  4       pV'       g   R# V^ ,          #   + '       g   i     LV; i  \         d     R# i ; i)at  Read the process state char from ``/proc/<pid>/stat``. Linux-only.

Returns the single-letter state (e.g. ``'R'``, ``'S'``, ``'D'``,
``'Z'``) or ``None`` if the file is unreadable (non-Linux, process
gone, permission denied, or parse error). The ``comm`` field can
contain spaces and parentheses, so the parser keys off the last
``)`` rather than splitting on whitespace.
z/proc/z/statNÚ)éÿÿÿÿ)ÚopenÚreadÚrfindÚsplitÚOSError)r   ÚfÚdataÚrparenÚrests   &    r   r   r      sˆ   € ðÜ�F˜3˜%˜uÐ%×&Ô&¨!Ø—6‘6“8ˆD÷ 'à—‘˜C“ˆØ�RŒ<Ùð ˜Q•J�LÐ!×'Ñ'Ó)ˆßÙØ�A�wˆ÷ '×&ûô ô Úðús3   ‚B ™A8ª B Á!B Á/B Á8B	ÂB ÂBÂBc               ó    € V ^8„  d   QhRRRR/# )r   Ústater
   r	   Úboolr   )r   s   "r   r   r   /   s   € ÷ 7ñ 7 Jð 7°4ñ 7r   c                ó<   € V RJ;'       d    V P                  R4      # )zêReturn True if ``state`` is Linux uninterruptible sleep ('D').

Includes the ``'D+'`` (foreground) variant; the state field is
a single char in the kernel format we read, but we accept any
string that starts with ``'D'`` defensively.
NÚD)Ú
startswith)r   s   &r   r   r   /   s"   € ð ˜Ð×6Ð6 ×!1Ñ!1°#Ó!6Ð6r   N)Ú__doc__Ú
__future__r   Ú__all__r   r   r   r   r   Ú<module>r%      s&   ðñõ #ð Ð8Ð
9€õ÷27r   