MCPcopy Create free account
hub / github.com/chen3feng/toft / SetArgWithShell

Function SetArgWithShell

system/process/sub_process.cpp:115–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static void SetArgWithShell(const std::string& cmdline,
116 std::vector<const char*>* cargs)
117{
118 cargs->push_back("/bin/sh");
119 cargs->push_back("-c");
120 cargs->push_back(cmdline.c_str());
121 cargs->push_back(NULL);
122}
123
124bool SubProcess::Create(const std::string& cmdline, const CreateOptions& options)
125{

Callers 1

CreateMethod · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected