MCPcopy Create free account
hub / github.com/3rdparty/libprocess / DUP2

Method DUP2

src/subprocess.cpp:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108#ifndef __WINDOWS__
109Subprocess::ChildHook Subprocess::ChildHook::DUP2(int oldFd, int newFd)
110{
111 return Subprocess::ChildHook([oldFd, newFd]() -> Try<Nothing> {
112 return os::dup2(oldFd, newFd);
113 });
114}
115#endif // __WINDOWS__
116
117

Callers

nothing calls this directly

Calls 1

ChildHookClass · 0.85

Tested by

no test coverage detected