Tor  0.4.7.0-alpha-dev
Data Fields
tor_process_monitor_t Struct Reference

Data Fields

log_domain_mask_t log_domain
 
pid_t pid
 
periodic_timer_te
 
tor_procmon_callback_t cb
 
void * cb_arg
 

Detailed Description

Definition at line 102 of file procmon.c.

Field Documentation

◆ cb

tor_procmon_callback_t cb

A callback to be called when the process ends.

Definition at line 148 of file procmon.c.

◆ cb_arg

void* cb_arg

A user-specified pointer to be passed to cb.

Definition at line 149 of file procmon.c.

◆ e

A Libevent event structure, to either poll for the process's existence or receive a notification when the process ends.

Definition at line 145 of file procmon.c.

Referenced by tor_process_monitor_free_().

◆ log_domain

log_domain_mask_t log_domain

Log domain for warning messages.

Definition at line 104 of file procmon.c.

◆ pid

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.

Definition at line 110 of file procmon.c.


The documentation for this struct was generated from the following file: