mirror of
https://github.com/dlang/phobos.git
synced 2025-05-05 17:42:58 +03:00
Removed global core.sys.posix.stdio import from std.process
This commit is contained in:
parent
ecb5c4b9e6
commit
2bc85ac4a2
1 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,6 @@ module std.process;
|
|||
|
||||
version (Posix)
|
||||
{
|
||||
import core.sys.posix.stdio;
|
||||
import core.sys.posix.unistd;
|
||||
import core.sys.posix.sys.wait;
|
||||
}
|
||||
|
@ -413,6 +412,7 @@ private Pid spawnProcessImpl(in char[][] args,
|
|||
|
||||
void forkChild() nothrow @nogc
|
||||
{
|
||||
static import core.sys.posix.stdio;
|
||||
pragma(inline, true);
|
||||
|
||||
// Child process
|
||||
|
@ -1596,6 +1596,7 @@ $(REF StdioException, std,stdio) on failure.
|
|||
version (Posix)
|
||||
Pipe pipe() @trusted //TODO: @safe
|
||||
{
|
||||
import core.sys.posix.stdio : fdopen;
|
||||
int[2] fds;
|
||||
if (core.sys.posix.unistd.pipe(fds) != 0)
|
||||
throw new StdioException("Unable to create pipe");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue