0x1949 Team - FAZEMRX - MANAGER
Edit File: socket.cpython-310.pyc
o ���f; � @ sn d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z e� e�Zde fdd�ZG dd � d �ZdS ) z#A module for common socket helpers.� N)�suppress)�DEFAULT_RUN_DIR�messagec C s� t j�dd�}|sdS |d dkr|�ddd� n |d dkr#td ��t�tjtjtjB ��}t � d t| �� |�|� |� | �d�� W d � dS 1 sOw Y dS )z[Send a sd_notify message. :param message: sd-notify message (must be valid ascii) � 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 �2/usr/lib/python3/dist-packages/cloudinit/socket.py� sd_notify s � "�r c @ s<