Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
process.h File Reference

Linux 平台进程管理库,支持进程创建、控制、等待和信息查询。 More...

#include <cstdio>
#include <cstdlib>
#include <fcntl.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  console::ExitStatus
 进程退出状态,包含完整退出信息。 More...
struct  console::ProcessInfo
 进程详细信息。 More...
class  console::Process
 进程控制器,支持创建、等待、控制、信息查询。 More...

Namespaces

namespace  console
 本库所有组件所在的顶层命名空间。

Enumerations

enum class  console::Signal : int {
  console::Interrupt = SIGINT , console::Terminate = SIGTERM , console::Kill = SIGKILL , console::Stop = SIGSTOP ,
  console::Continue = SIGCONT , console::Hangup = SIGHUP , console::User1 = SIGUSR1 , console::User2 = SIGUSR2
}
 常用信号枚举。 More...

Detailed Description

Linux 平台进程管理库,支持进程创建、控制、等待和信息查询。

封装 fork/waitpid/kill 等系统调用,提供 OOP 风格的进程管理接口。

Warning
仅支持 Linux 平台。
Author
MrXie1109
Date
2026