Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
process_posix.cc File Reference
#include <fcntl.h>
#include <signal.h>
#include <spawn.h>
#include <sys/wait.h>
#include <unistd.h>
#include <algorithm>
#include <chrono>
#include <iterator>
#include <string>
#include <thread>
#include <vector>
#include "auto_tuning/process_platform.h"
#include "core/platform.h"
Include dependency graph for process_posix.cc:

Namespaces

namespace  mm
 
namespace  mm::auto_tuning
 
namespace  mm::auto_tuning::detail
 

Functions

std::expected< Child, std::string > mm::auto_tuning::detail::spawnChild (const std::filesystem::path &binary, const std::vector< std::string > &args, const std::filesystem::path &logFile)
 Runs binary with args, with its output appended to logFile.
 
bool mm::auto_tuning::detail::childAlive (const Child &child)
 Whether child is still running.
 
bool mm::auto_tuning::detail::terminateChild (const Child &child, std::chrono::milliseconds grace)
 Asks child to exit, waits up to grace, then kills it and everything it started.
 

Variables

char ** environ
 

Variable Documentation

◆ environ

char** environ