From: Roger Dingledine Date: Fri, 26 Nov 2004 04:03:19 +0000 (+0000) Subject: if you want to handle -USR2, you should catch it too. X-Git-Tag: tor-0.0.9rc4~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f9a0ab62b78f82110183e5c588db622c066e113b;p=thirdparty%2Ftor.git if you want to handle -USR2, you should catch it too. svn:r2990 --- diff --git a/src/or/main.c b/src/or/main.c index 6137866fad..d37cb0340b 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1044,6 +1044,7 @@ void handle_signals(int is_parent) sigaction(SIGTERM, &action, NULL); /* to terminate now */ sigaction(SIGPIPE, &action, NULL); /* otherwise sigpipe kills us */ sigaction(SIGUSR1, &action, NULL); /* dump stats */ + sigaction(SIGUSR2, &action, NULL); /* go to loglevel debug */ sigaction(SIGHUP, &action, NULL); /* to reload config, retry conns, etc */ #ifdef SIGXFSZ sigaction(SIGXFSZ, &action, NULL); /* handle file-too-big resource exhaustion */