tor
master
|
Data Fields | |
log_domain_mask_t | log_domain |
pid_t | pid |
periodic_timer_t * | e |
tor_procmon_callback_t | cb |
void * | cb_arg |
tor_procmon_callback_t cb |
A callback to be called when the process ends.
void* cb_arg |
A user-specified pointer to be passed to cb.
A Libevent event structure, to either poll for the process's existence or receive a notification when the process ends.
log_domain_mask_t log_domain |
Log domain for warning messages.
pid_t pid |
All systems: The best we can do in general is poll for the process's existence by PID periodically, and hope that the kernel doesn't reassign the same PID to another process between our polls.