pcarrier/baba

语言: C++

git: https://github.com/pcarrier/baba

维护流程层次结构
Maintain a process hierarchy
README.md (中文)

爸爸

建造

$ cmake . && make install

用法

在本节中描述命令行参数时, 星号(*)用于表示默认行为。

baba生成命令行中指定的进程, 并且在其后代返回之前不会返回。

它总是为自己及其后代创建一个新的流程组。

守护进程将导致后代重新连接 巴巴而不是初始。

巴巴截获它可以发出的所有信号。 它要么吞下它们(-fN), 将它们转发到其进程组(-fG *)或 将它们转发给它的初始子(-fC)。

它记录了它自己的执行以及它的后代会发生什么, 提供3个级别: -lC *仅限关键, -lV用于详细, -lT用于追踪。

它可以始终返回0(-tN), 仅跟踪其初始子项(-tC *), 或跟踪所有直系孩子(-tG)。

它的退出状态可以反映其初始子的状态(-eC *) 或失败的被跟踪进程数,上限为127(-eF)。

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

baba

Building

$ cmake . && make install

Usage

When command line arguments are described in this section,
asterisks (*) are used to indicate a default behaviour.

baba spawns a process specified on the command line,
and doesn't return until its descendants return.

It always creates a new process group for itself and its descendants.

Daemonization will cause descendants to be reattached to
baba rather than init.

baba intercepts all the signals it can.
It either swallows them (-fN),
forwards them to its process group (-fG*) or
forward them to its initial child (-fC).

It logs about its own execution and what happens to its descendants,
with 3 levels available:
-lC* for critical only,
-lV for verbose,
-lT for trace.

It can either always return 0 (-tN),
track only its initial child (-tC*),
or track all immediate children (-tG).

Its exit status can either mirror that of its initial child (-eC*)
or the number of tracked processes that failed, capped at 127 (-eF).