|
Anklang-0.3.0.dev967+g08f67ae3 anklang-0.3.0.dev967+g08f67ae3
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Cleanup list of child processes still running at exit. More...
Public Member Functions | |
| void | add (pid_t pid) |
| void | del (pid_t pid) |
| void | collect_children (int sig) |
| Find previously orphaned child processes, optionally send signal. | |
| void | reap () |
| Reap zombies and remove dead PIDs from the list. | |
| void | kill_all (int sig) |
Send signal sig to all tracked PIDs. | |
| void | clear () |
| Clear the PID list after both kill phases are complete. | |
| bool | empty () |
| Return true if no PIDs are tracked. | |
Static Public Member Functions | |
| static std::vector< pid_t > | read_children () |
| Read orphaned grandchildren reparented to this process as subreaper. | |
| void Ase::KillPids::clear | ( | ) |
Clear the PID list after both kill phases are complete.
Definition at line 181 of file atquit.cc.
References std::vector::clear().
| void Ase::KillPids::collect_children | ( | int | sig | ) |
Find previously orphaned child processes, optionally send signal.
Definition at line 143 of file atquit.cc.
References std::vector::begin(), std::vector::end(), std::find(), kill(), pid_t, std::vector::push_back(), and read_children().
| bool Ase::KillPids::empty | ( | ) |
Return true if no PIDs are tracked.
Definition at line 188 of file atquit.cc.
References std::vector::empty().
| void Ase::KillPids::kill_all | ( | int | sig | ) |
|
static |
Read orphaned grandchildren reparented to this process as subreaper.
Definition at line 195 of file atquit.cc.
References fclose(), fopen(), fscanf(), getpid(), pid_t, and snprintf().
Referenced by collect_children().
| void Ase::KillPids::reap | ( | ) |
Reap zombies and remove dead PIDs from the list.
Definition at line 159 of file atquit.cc.
References Ase::Aux::erase_first(), pid_t, and waitpid().