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.

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

Parameters

args char[][]

arguments to run.

stdout_p string

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

stderr_p string

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

Meta