The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



"Подведены итоги голосования о системах инициализации в Debian"
Версия для распечатки Пред. тема | След. тема
Форум Разговоры, обсуждение новостей
Исходное сообщение [ Отслеживать ]
Заметили полезную информацию ? Пожалуйста добавьте в FAQ на WIKI.
. "Подведены итоги голосования о системах инициализации в Debia..." +/
Сообщение от анонн (ok), 29-Дек-19, 15:04 
> И добрая традиция оставлять pid-файл при падении.

man pidfile


DESCRIPTION
     The pidfile family of functions allows daemons to handle PID files.  It
     uses flopen(3) to lock a pidfile and detect already running daemons.

     The pidfile_open() function opens (or creates) a file specified by the
     path argument and locks it.  If pidptr argument is not NULL and file can
     not be locked, the function will use it to store a PID of an already
     running daemon or -1 in case daemon did not write its PID yet.


2005 год.
man procdesc

DESCRIPTION
     procdesc is a file-descriptor-oriented interface to process signalling
     and control, which supplements historic UNIX fork(2), kill(2), and
     wait4(2) primitives with new system calls such as pdfork(2), pdkill(2),
     and pdwait4(2).  procdesc is designed for use with capsicum(4), replacing
     process identifiers with capability-oriented references.  However, it can
     also be used independently of capsicum(4), displacing PIDs, which may
     otherwise suffer from race conditions.  Given a process descriptor, it is
     possible to query its conventional PID using pdgetpid(2).

2011 год.

Ответить | Правка | Наверх | Cообщить модератору

Оглавление
Подведены итоги голосования о системах инициализации в Debian, opennews, 28-Дек-19, 08:45  [смотреть все]
Форумы | Темы | Пред. тема | След. тема



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру