proc

Modules

channel
module proc.channel
libc
module proc.libc
pid
module proc.pid
tty
module proc.tty
type
module proc.type

Public Imports

proc.channel
public import proc.channel;
proc.pid
public import proc.pid;
proc.tty
public import proc.tty;

Members

Aliases

scopeKill
alias scopeKill = rcKill
Undocumented in source.

Functions

drain
auto drain(T p)

Drain a process pipe until empty.

drain
auto drain(ProcessT p, T range)

Drain the output from the process into an output range.

drainByLineCopy
auto drainByLineCopy(T p)
Undocumented in source. Be warned that the author may not have intended to support it.
drainToNull
auto drainToNull(T p)

Drain the process output until it is done executing.

makeScript
string makeScript(string script, string file, uint line)
Undocumented in source. Be warned that the author may not have intended to support it.
pipeProcess
PipeProcess pipeProcess(const(char[])[] args, std.process.Redirect redirect, string[string] env, std.process.Config config, const(char)[] workDir)
Undocumented in source. Be warned that the author may not have intended to support it.
pipeShell
PipeProcess pipeShell(const(char)[] command, std.process.Redirect redirect, string[string] env, std.process.Config config, const(char)[] workDir, string shellPath)
Undocumented in source. Be warned that the author may not have intended to support it.
rcKill
auto rcKill(T p, int signal)

Manage a process by reference counting so that it is terminated when the it stops being used such as the instance going out of scope.

sandbox
auto sandbox(T p)
Undocumented in source. Be warned that the author may not have intended to support it.
spawnProcess
SpawnProcess spawnProcess(const(char[])[] args, File stdin, File stdout, File stderr, string[string] env, std.process.Config config, char[] workDir)
Undocumented in source. Be warned that the author may not have intended to support it.
spawnProcess
SpawnProcess spawnProcess(const(char[])[] args, string[string] env, std.process.Config config, const(char)[] workDir)
Undocumented in source. Be warned that the author may not have intended to support it.
spawnProcess
SpawnProcess spawnProcess(const(char)[] program, File stdin, File stdout, File stderr, string[string] env, std.process.Config config, const(char)[] workDir)
Undocumented in source. Be warned that the author may not have intended to support it.
spawnShell
SpawnProcess spawnShell(const(char)[] command, File stdin, File stdout, File stderr, string[string] env, std.process.Config config, const(char)[] workDir, string shellPath)
Undocumented in source. Be warned that the author may not have intended to support it.
spawnShell
SpawnProcess spawnShell(const(char)[] command, string[string] env, std.process.Config config, const(char)[] workDir, string shellPath)

Async process that do not block on read from stdin/stderr.

timeout
auto timeout(T p, Duration timeout_)
Undocumented in source. Be warned that the author may not have intended to support it.
waitForPendingData
void waitForPendingData(Process p)

Returns when the process has pending data.

waitUntilChildren
void waitUntilChildren(RawPid p, int num)

Wait for p to have num children or fail after 10s.

Structs

DrainByLineCopyRange
struct DrainByLineCopyRange(ProcessT)

Read the data from a ReadChannel by line.

DrainElement
struct DrainElement
Undocumented in source.
DrainRange
struct DrainRange(ProcessT)

A range that drains a process stdout/stderr until it terminates.

PipeProcess
struct PipeProcess

Async process that do not block on read from stdin/stderr.

Sandbox
struct Sandbox(ProcessT)

Moves the process to a separate process group and on exit kill it and all its children.

ScopeKill
struct ScopeKill(T)
Undocumented in source.
SpawnProcess
struct SpawnProcess

Async process wrapper for a std.process SpawnProcess

Timeout
struct Timeout(ProcessT)

dispose the process after the timeout.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)