From c7526b201a879c48f52c4044b5310e00c6acd87c Mon Sep 17 00:00:00 2001 From: in2 Date: Fri, 24 May 2002 16:32:31 +0000 Subject: DEBUG show pid git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@193 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 11d90989..62fcfa86 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1,4 +1,4 @@ -/* $Id: mbbsd.c,v 1.29 2002/05/22 15:46:33 in2 Exp $ */ +/* $Id: mbbsd.c,v 1.30 2002/05/24 16:32:31 in2 Exp $ */ #include #include #include @@ -585,7 +585,12 @@ login_query () attach_uhash (); now= time(0); attempts = utmpshm->number; +#ifdef DEBUG + move(1, 0); + prints("debugging mode\ncurrent pid: %d\n", getpid()); +#else show_file ("etc/Welcome", 1, -1, NO_RELOAD); +#endif output ("1", 1); if (attempts >= MAX_ACTIVE){ outs ("由於人數太多,請您稍後再來。\n"); -- cgit v1.2.3