process

Modules

channel
module process.channel
type
module process.type

Public Imports

process.channel
public import process.channel;
Undocumented in source.

Members

Functions

drain
auto drain(T p, Duration timeout)

Drain a process pipe until empty.

drain
auto drain(ProcessT p, T range, Duration timeout)

Drain the output from the process into an output range.

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

Drain the process output until it is done executing.

getDeepChildren
RawPid[] getDeepChildren(int parentPid)
getShallowChildren
RawPid[] getShallowChildren(int parentPid)
Undocumented in source. Be warned that the author may not have intended to support it.
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.
sandbox
auto sandbox(T p)
Undocumented in source. Be warned that the author may not have intended to support it.
scopeKill
auto scopeKill(T p)

Automatically terminate the process when it goes out of scope.

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.

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.

RawPid
struct RawPid
Undocumented in source.
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.
Timeout
struct Timeout(ProcessT)

dispose the process after the timeout.

Meta

License

MPL-2

Authors

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

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.