tor
master
|
utility functions for launching processes and checking their status. These functions are kept separately from procmon so that they won't require linking against libevent. More...
#include "orconfig.h"
#include "compat.h"
#include "util.h"
#include "torlog.h"
#include "util_process.h"
#include "ht.h"
Data Structures | |
struct | waitpid_callback_t |
Functions | |
void | clear_waitpid_callback (waitpid_callback_t *ent) |
void | notify_pending_waitpid_callbacks (void) |
utility functions for launching processes and checking their status. These functions are kept separately from procmon so that they won't require linking against libevent.
void clear_waitpid_callback | ( | waitpid_callback_t * | ent | ) |
Cancel a waitpid_callback_t, or clean up after one has triggered. Releases all storage held by ent.
void notify_pending_waitpid_callbacks | ( | void | ) |
Use waitpid() to wait for all children that have exited, and invoke any callbacks registered for them.