Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
#include "atquit.hh"
#include <atomic>
#include <cstring>
#include <cerrno>
#include <sys/wait.h>
#include <sys/prctl.h>
#include <sys/stat.h>
#include <filesystem>
#include <dirent.h>
#include "path.hh"
#include "strings.hh"
Go to the source code of this file.
Classes | |
struct | Ase::PendingRemovals |
Cleanup list of temporary files/dirs to be removed at exit. More... | |
struct | Ase::KillPids |
Cleanup list of child processes still running at exit. More... | |
struct | Ase::AtquitHandlers |
Namespaces | |
namespace | Ase |
The Anklang C++ API namespace. | |
Macros | |
#define | QDEBUG(...) |
Functions | |
void | Ase::cleanup_orphaned_tempfiles (const std::string &directory) |
Delete all files that contain @TEMPFILE_PID=d@ without a running pid_t d. | |
void | Ase::atquit_add_removal (const std::string &filename) |
Remove filename (or directory) when the program terminates. | |
void | Ase::atquit_del_removal (const std::string &filename) |
Undo a previous atquit_add_removal() call. | |
void | Ase::atquit_add_killl_pid (int pid) |
Kill pid when the program terminates. | |
void | Ase::atquit_del_killl_pid (int pid) |
Undo a previous atquit_add_killl_pid() call. | |
ErrorReason | Ase::spawn_process (const std::vector< std::string > &argv, pid_t *child_pid, int pdeathsig) |
Span a child process after cleaning up the environment. | |
std::string | Ase::create_tempfile_dir (const std::string &basename) |
Create temporary directory under /tmp, scheduled for removal atquit. | |
void | Ase::atquit_add (std::function< void()> *func) |
void | Ase::atquit_del (std::function< void()> *func) |
void | Ase::atquit_terminate (int exitcode, int pgroup) |
bool | Ase::atquit_triggered () |