Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::SpawnOptions Struct Reference

#include <processes.hh>

Public Attributes

std::filesystem::path program
bool lookupPath = true
OsStrings args
std::optional< std::string > argv0
std::optional< uid_t > uid
std::optional< uid_t > gid
std::optional< std::filesystem::path > chdir
std::optional< OsStringMap > environment
bool dieWithParent = true
 (Linux-only) whether to have the process die when its parent (us) exists.
bool setSid = false
bool restoreMounts = true
 (Linux-only) whether to restore the mount ns in the child. Only set this to false if the child process needs a writable store. Ignored on non-Linux because it's irrelevant.

Detailed Description

Options for creating a new process running the specified program.

Member Data Documentation

◆ dieWithParent

bool nix::SpawnOptions::dieWithParent = true

(Linux-only) whether to have the process die when its parent (us) exists.

Implemented on best-effort basis and ignored if not implemented.


The documentation for this struct was generated from the following file: