#include "types.hh"
#include "error.hh"
#include "file-descriptor.hh"
#include "logging.hh"
#include "ansicolor.hh"
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <unistd.h>
#include <signal.h>
#include <atomic>
#include <functional>
#include <map>
#include <sstream>
#include <optional>
Go to the source code of this file.
◆ killUser()
void nix::killUser |
( |
uid_t | uid | ) |
|
Kill all processes running under the specified uid by sending them a SIGKILL.
◆ runProgram()
std::string nix::runProgram |
( |
Path | program, |
|
|
bool | lookupPath = false, |
|
|
const Strings & | args = Strings(), |
|
|
const std::optional< std::string > & | input = {}, |
|
|
bool | isInteractive = false ) |
Run a program and return its stdout in a string (i.e., like the shell backtick operator).
◆ statusToString()
std::string nix::statusToString |
( |
int | status | ) |
|
Convert the exit status of a child as returned by wait() into an error string.