0x1949 Team - FAZEMRX - MANAGER
Edit File: signal_handler.cpython-310.pyc
o ���f� � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlmZ e� e�ZdZ ejdejdejdiZd d � Zdd� Zd d� ZdS )� N)�StringIO)�util)�version� )z2Cloud-init %(version)s received SIGINT, exiting...� )z3Cloud-init %(version)s received SIGTERM, exiting...r )z3Cloud-init %(version)s received SIGABRT, exiting...r c C sz ||ks| sd S t �| �}d|d }|�d||jf � |�d||jf � |�d||jf � t| j|d ||� d S )N� � z%sFilename: %s z%sFunction: %s z%sLine number: %s r )�inspect�getframeinfo�write�filename�function�lineno� _pprint_frame�f_back)�frame�depth� max_depth�contents� frame_info�prefix� r �:/usr/lib/python3/dist-packages/cloudinit/signal_handler.pyr s r c C sb t | \}}|dt�� i }t� }|�d| � t|dt|� tj|� � t tjd� t �|� d S )Nr z%s r )�log� log_level)�EXIT_FOR�vr�version_stringr r r �BACK_FRAME_TRACE_DEPTHr � multi_log�getvalue�LOG�logging�ERROR�sys�exit)�signumr �msg�rcr r r r �_handle_exit) s r) c C s. d} t �� D ]}t�|t� q| tt �7 } | S )Nr )r �keys�signalr) �len)� sigs_attachedr&