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

Method CHDIR

src/subprocess.cpp:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74
75Subprocess::ChildHook Subprocess::ChildHook::CHDIR(
76 const std::string& working_directory)
77{
78 return Subprocess::ChildHook([working_directory]() -> Try<Nothing> {
79 const Try<Nothing> result = os::chdir(working_directory);
80 if (result.isError()) {
81 return Error(result.error());
82 }
83
84 return Nothing();
85 });
86}
87
88
89Subprocess::ChildHook Subprocess::ChildHook::SETSID()

Callers

nothing calls this directly

Calls 1

ChildHookClass · 0.85

Tested by

no test coverage detected