diff --git a/source/vibe/core/process.d b/source/vibe/core/process.d index 4918dc4..370f707 100644 --- a/source/vibe/core/process.d +++ b/source/vibe/core/process.d @@ -195,7 +195,7 @@ struct Process { /** An operating system handle to the process. */ - @property int osHandle() const nothrow @nogc { return cast(int)m_pid; } + @property int pid() const nothrow @nogc { return cast(int)m_pid; } /** Whether the process has exited. @@ -724,7 +724,7 @@ private auto executeImpl(alias spawn, Cmd, Args...)( return Tuple!(int, "status", string, "output")(processPipes.process.wait(), stringOutput); } -/** +/* Collect the string output of a stream in a blocking fashion. Params: @@ -734,6 +734,7 @@ private auto executeImpl(alias spawn, Cmd, Args...)( Returns: The collected data from the stream as a string. */ +/// private string collectOutput(InputStream)(InputStream stream, size_t nbytes = size_t.max) @blocking @trusted if (isInputStream!InputStream) { auto output = appender!string(); diff --git a/tests/vibe.core.process.d b/tests/vibe.core.process.d index 840e8fe..a6a84bd 100644 --- a/tests/vibe.core.process.d +++ b/tests/vibe.core.process.d @@ -5,6 +5,8 @@ dependency "vibe-core" path="../" +/ module test; +static if (__VERSION__ >= 2080) { + import core.thread; import vibe.core.log; import vibe.core.core; @@ -204,3 +206,5 @@ void main() runEventLoop(); } + +}