Uname : Linux serv1.rebootns.com 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
Soft : LiteSpeed
Ip : 139.99.125.122
Port : 443
~
/
usr
/
lib
/
python3.9
/
site-packages
/
cloudinit
/
__pycache__
[ HOME ]
Exec
Submit
socket.cpython-39.pyc
a '�Dg� � @ sr d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m Z e�e�Z ed�dd�ZG d d � d �ZdS )z#A module for common socket helpers.� N)�suppress)�performance)�DEFAULT_RUN_DIR)�messagec C s� t j�dd�}|sdS |d dkr2|�ddd� n|d dkrFtd ��t�tjtjtjB ��:}t � d t| �� |�|� |� | �d�� W d � n1 s�0 Y dS )z[Send a sd_notify message. :param message: sd-notify message (must be valid ascii) Z NOTIFY_SOCKET� Nr �@� � �/zUnsupported socket typezSending sd_notify(%s)�ascii)�os�environ�get�replace�OSError�socket�AF_UNIX� SOCK_DGRAM�SOCK_CLOEXEC�LOG�info�str�connect�sendall�encode)r �socket_path�sock� r �4/usr/lib/python3.9/site-packages/cloudinit/socket.py� sd_notify s � r c @ s<