docs

std::os::unix::process

本页内容

API 参考只有英文版,由标准库源代码中的英文文档注释生成。

Unix-only parts of process. The traits are in the prelude on Unix targets.

Traits

CommandExtSource

pub trait CommandExt

Unix-only Command settings.

  • fn process_group(self, pgid: i32) -> Self§

    Source

    Put the child in process group pgid (0: a new group it leads).

ExitStatusExtSource

pub trait ExitStatusExt

How a Unix child ended beyond its exit code.

  • fn signal(self) -> Signal | none§

    Source

    The signal that ended it, if one did.

Functions

parent_idSource

pub fn parent_id() -> u32

The parent process's id (getppid).