Headers for procmon.c.
More...
Go to the source code of this file.
|
typedef void(* | tor_procmon_callback_t) (void *) |
|
Headers for procmon.c.
Definition in file procmon.h.
◆ tor_process_monitor_free_()
Free the process-termination monitor procmon.
Definition at line 325 of file procmon.c.
◆ tor_process_monitor_new()
tor_process_monitor_t* tor_process_monitor_new |
( |
struct event_base * |
base, |
|
|
const char * |
process_spec, |
|
|
log_domain_mask_t |
log_domain, |
|
|
tor_procmon_callback_t |
cb, |
|
|
void * |
cb_arg, |
|
|
const char ** |
msg |
|
) |
| |
Create a process-termination monitor for the process specifier given in process_spec. Return a newly allocated tor_process_monitor_t on success; return NULL and store an error message into *msg on failure. The caller must not free the returned error message.
When the monitored process terminates, call cb(cb_arg).
Definition at line 181 of file procmon.c.
◆ tor_validate_process_specifier()
int tor_validate_process_specifier |
( |
const char * |
process_spec, |
|
|
const char ** |
msg |
|
) |
| |
Verify that the process specifier given in process_spec is syntactically valid. Return 0 on success; return -1 and store an error message into *msg on failure. The caller must not free the returned error message.
Definition at line 157 of file procmon.c.