diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-11-18 11:00:16 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-11-18 11:00:16 -0500 |
commit | fbc20294aaf67f9434d5b1e107b8e1c43e42a3a4 (patch) | |
tree | 0d0f0b0aa37423e8f36f11e8410849e48be59ba6 /src/or/main.c | |
parent | 7a2b30fe16eacc040b3dd11f8c39c410628c2f43 (diff) | |
parent | c81f64ab44f71a97649a44e10d6fcbf15aa8c835 (diff) | |
download | tor-fbc20294aaf67f9434d5b1e107b8e1c43e42a3a4.tar tor-fbc20294aaf67f9434d5b1e107b8e1c43e42a3a4.tar.gz |
Merge branch 'backtrace_squashed'
Conflicts:
src/common/sandbox.c
src/common/sandbox.h
src/common/util.c
src/or/main.c
src/test/include.am
src/test/test.c
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c index aa5642509..e14001f10 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -13,6 +13,7 @@ #define MAIN_PRIVATE #include "or.h" #include "addressmap.h" +#include "backtrace.h" #include "buffers.h" #include "channel.h" #include "channeltls.h" @@ -2330,13 +2331,14 @@ handle_signals(int is_parent) int tor_init(int argc, char *argv[]) { - char buf[256]; + char progname[256]; int quiet = 0; + time_of_process_start = time(NULL); init_connection_lists(); /* Have the log set up with our application name. */ - tor_snprintf(buf, sizeof(buf), "Tor %s", get_version()); - log_set_application_name(buf); + tor_snprintf(progname, sizeof(progname), "Tor %s", get_version()); + log_set_application_name(progname); /* Initialize the history structures. */ rep_hist_init(); /* Initialize the service cache. */ @@ -2839,6 +2841,8 @@ tor_main(int argc, char *argv[]) } #endif + configure_backtrace_handler(get_version()); + update_approx_time(time(NULL)); tor_threads_init(); init_logging(); |