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
/
lib64
/
python3.9
/
site-packages
/
borg
/
helpers
/
__pycache__
[ HOME ]
Exec
Submit
process.cpython-39.pyc
a HZ�h�: � @ sv d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z ddl mZ ddlm Z mZmZmZ ddlmZ e� ZddlmZmZmZmZ e jdd� �Zd d � Ze jdd�d d��ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Z e jdd� �Z!dd� Z"G dd� d�Z#e#� Z$dd� Z%d*e&d �d!d"�Z'ej(fd#d$�Z)d+d%d&�Z*e jd,d(d)��Z+dS )-� N� )�__version__)�is_win32�is_linux� is_freebsd� is_darwin)� create_logger)�EXIT_SUCCESS�EXIT_WARNING�EXIT_SIGNAL_BASE�Errorc c s@ ddl m} | � }t�� }|r�t}zVz|d fV W n* ty\ } z|j}W Y d }~n d }~0 0 W t�d| � t� |� nt�d| � t� |� 0 t� � t�� }|r�t� d� t�d� t�d� t�d� t� tjtj�}t�|d� t�|d� | � }z$||fV W t�d� t�|d� nt�d� t�|d� 0 d S )Nr )�get_process_idz:Daemonizing: Foreground process (%s, %s, %s) is now dying.r �/� )�platformr �os�forkr �_ExitCodeException� exit_code�logger�debug�_exit�setsid�chdir�close�open�devnull�O_RDWR�dup2)r �old_id�pidr �e�fd�new_id� r$ �:/usr/lib64/python3.9/site-packages/borg/helpers/process.py� _daemonize s<