spawnSession

Fork to a new session and process group.

The first index of args must be the path to the program. The path must be absolute for the effect to be visible when running e.g. ps.

trusted: the input and memory allocations use the GC and the facilities in D to keep array's safe.

PidSession
spawnSession
@trusted
(
const char[][] args
,
string stdout_p = null
,
string stderr_p = null
,
bool debug_ = false
)

Parameters

args
Type: char[][]

arguments to run.

stdout_p
Type: string

write stdout to this file (if null then /dev/null is used)

stderr_p
Type: string

write stderr to this file (if null then /dev/null is used)

Meta