From 55e90901043584ace1d01b8315f6be046a277893 Mon Sep 17 00:00:00 2001 From: in2 Date: Wed, 18 Sep 2002 01:02:23 +0000 Subject: DEBUGSLEEP git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@523 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 9309103e..b74a9a22 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1,4 +1,4 @@ -/* $Id: mbbsd.c,v 1.56 2002/09/07 11:21:36 in2 Exp $ */ +/* $Id: mbbsd.c,v 1.57 2002/09/18 01:02:23 in2 Exp $ */ #include "bbs.h" #define SOCKET_QLEN 4 @@ -208,6 +208,7 @@ abort_bbs(int sig) static void abort_bbs_debug(int sig) { +#ifdef DEBUGSLEEP static int reentrant = 0; if (!reentrant) { @@ -221,6 +222,7 @@ abort_bbs_debug(int sig) setproctitle("debug me!(%d)(%s,%d)", sig, cuser.userid, currstat); sleep(3600); /* wait 60 mins for debug */ } +#endif exit(0); } -- cgit v1.2.3