From fb5ae9a7a5a36211af989ec7cac986880d49e538 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 16 Feb 2011 22:54:07 +0200 Subject: Debug stacks will now be printed on Ctrl-C. Also client properly quits on Ctrl-C. --- src/porting.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/porting.cpp') diff --git a/src/porting.cpp b/src/porting.cpp index 50605587d..97b028236 100644 --- a/src/porting.cpp +++ b/src/porting.cpp @@ -25,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "porting.h" #include "config.h" +#include "debug.h" namespace porting { @@ -47,8 +48,13 @@ void sigint_handler(int sig) { if(g_killed == false) { - dstream<