mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
windows does not have fork/wait
This commit is contained in:
parent
30a6e901f5
commit
d0374ce083
1 changed files with 4 additions and 0 deletions
|
@ -276,6 +276,9 @@ void
|
|||
Execute(std::string cmd)
|
||||
{
|
||||
std::cout << cmd << std::endl;
|
||||
#ifdef _WIN32
|
||||
system(cmd.c_str());
|
||||
#else
|
||||
std::vector<std::string> parts_str;
|
||||
std::vector<const char*> parts_raw;
|
||||
std::stringstream in(cmd);
|
||||
|
@ -313,6 +316,7 @@ Execute(std::string cmd)
|
|||
{
|
||||
waitpid(pid, 0, 0);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue