X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprocess.c;h=b8bb82147485b0b2c5f05f5a4ff3986f6ec0d54a;hp=406661031628f55e2ef56f51e345fe2a43b2c892;hb=a227843b739d279b63adcf3736ebb03d856080c4;hpb=5dde6461a321ee47b06e33f8203f2acf00a31a51 diff --git a/src/process.c b/src/process.c index 40666103..b8bb8214 100644 --- a/src/process.c +++ b/src/process.c @@ -49,7 +49,6 @@ static int saved_debug_level = -1; static void memory_full(int size) { logger(LOG_ERR, _("Memory exhausted (couldn't allocate %d bytes), exitting."), size); - cp_trace(); exit(1); } @@ -241,8 +240,6 @@ bool init_service(void) { static bool write_pidfile(void) { pid_t pid; - cp(); - pid = check_pid(pidfilename); if(pid) { @@ -271,8 +268,6 @@ bool kill_other(int signal) { #ifndef HAVE_MINGW pid_t pid; - cp(); - pid = read_pid(pidfilename); if(!pid) { @@ -308,8 +303,6 @@ bool kill_other(int signal) { Detach from current terminal, write pidfile, kill parent */ bool detach(void) { - cp(); - setup_signals(); /* First check if we can open a fresh new pidfile */ @@ -359,8 +352,6 @@ bool execute_script(const char *name, char **envp) { char *scriptname, *p; int i; - cp(); - #ifndef HAVE_MINGW len = xasprintf(&scriptname, "\"%s/%s\"", confbase, name); #else @@ -456,14 +447,12 @@ static RETSIGTYPE sigquit_handler(int a) { static RETSIGTYPE fatal_signal_square(int a) { logger(LOG_ERR, _("Got another fatal signal %d (%s): not restarting."), a, strsignal(a)); - cp_trace(); exit(1); } static RETSIGTYPE fatal_signal_handler(int a) { struct sigaction act; logger(LOG_ERR, _("Got fatal signal %d (%s)"), a, strsignal(a)); - cp_trace(); if(do_detach) { logger(LOG_NOTICE, _("Trying to re-execute in 5 seconds...")); @@ -527,7 +516,6 @@ static RETSIGTYPE sigwinch_handler(int a) { static RETSIGTYPE unexpected_signal_handler(int a) { logger(LOG_WARNING, _("Got unexpected signal %d (%s)"), a, strsignal(a)); - cp_trace(); } static RETSIGTYPE ignore_signal_handler(int a) {