Module unix

Source
Expand description

Unix-specific ProcessManager implementation.

  • Each child is started in its own process group via setpgid(0, 0).
  • On Linux, PR_SET_PDEATHSIG is set to SIGTERM.
  • Tree termination uses kill on the process group id.

Process reaping is based partly on https://github.com/fpco/pid1-rs

Those parts used under the MIT license, see full license at end. pid1-rs license: Copyright (c) 2023 FP Complete

Structsยง

ChildEntry ๐Ÿ”’
Inner ๐Ÿ”’
TokioProcessManager
Tokio-based Unix process manager.
UnixProcessSupervisor
Unix-specific process supervision primitives (to be implemented with nix):
UnixSharedMemory
Unix shared memory helpers (memfd, SCM_RIGHTS) should be implemented here as needed.