if you want to handle -USR2, you should catch it too.

svn:r2990
This commit is contained in:
Roger Dingledine
2004-11-26 04:03:19 +00:00
parent 3d06d8b418
commit 93a3d6845b
+1
View File
@@ -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 */