|
Tor 0.4.9.3-alpha-dev
|
Header file for main.c. More...
Go to the source code of this file.
Functions | |
| void | handle_signals (void) |
| void | activate_signal (int signal_num) |
| int | try_locking (const or_options_t *options, int err_if_locked) |
| int | have_lockfile (void) |
| void | release_lockfile (void) |
| void | tor_remove_file (const char *filename) |
| int | tor_init (int argc, char **argv) |
| int | run_tor_main_loop (void) |
| void | pubsub_install (void) |
| void | pubsub_connect (void) |
| void handle_signals | ( | void | ) |
| int have_lockfile | ( | void | ) |
Return true iff we've successfully acquired the lock file.
Definition at line 703 of file main.c.
Referenced by init_curve25519_keypair_from_file(), init_key_from_file(), and options_act().
| void pubsub_connect | ( | void | ) |
Connect the mainloop to its publish/subscribe message delivery events if appropriate, and configure the global channels appropriately.
Definition at line 1353 of file main.c.
Referenced by tor_run_main().
| void pubsub_install | ( | void | ) |
Install the publish/subscribe relationships for all the subsystems.
Definition at line 1341 of file main.c.
Referenced by tor_run_main().
| void release_lockfile | ( | void | ) |
If we have successfully acquired the lock file, release it.
Definition at line 710 of file main.c.
Referenced by tor_free_all().
| void tor_remove_file | ( | const char * | filename | ) |
Remove the specified file, and log a warning if the operation fails for any reason other than the file not existing. Ignores NULL filenames.
Definition at line 723 of file main.c.
Referenced by tor_cleanup().
| int try_locking | ( | const or_options_t * | options, |
| int | err_if_locked | ||
| ) |
Try to grab the lock file described in options, if we do not already have it. If err_if_locked is true, warn if somebody else is holding the lock, and exit if we can't get it after waiting. Otherwise, return -1 if we can't get the lockfile. Return 0 on success.
Definition at line 667 of file main.c.
Referenced by init_curve25519_keypair_from_file(), init_key_from_file(), options_act(), and try_locking().