summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 00:32:31 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 00:32:31 +0800
commitc7526b201a879c48f52c4044b5310e00c6acd87c (patch)
tree2ecbf6a3917f32ff800d7c4abdadc3a33665e2a1 /mbbsd
parent926f38ea9358f13ea09a8311a0171c1c23bbd653 (diff)
downloadpttbbs-c7526b201a879c48f52c4044b5310e00c6acd87c.tar
pttbbs-c7526b201a879c48f52c4044b5310e00c6acd87c.tar.gz
pttbbs-c7526b201a879c48f52c4044b5310e00c6acd87c.tar.bz2
pttbbs-c7526b201a879c48f52c4044b5310e00c6acd87c.tar.lz
pttbbs-c7526b201a879c48f52c4044b5310e00c6acd87c.tar.xz
pttbbs-c7526b201a879c48f52c4044b5310e00c6acd87c.tar.zst
pttbbs-c7526b201a879c48f52c4044b5310e00c6acd87c.zip
DEBUG show pid
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@193 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/mbbsd.c7
1 files changed, 6 insertions, 1 deletions
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 <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -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");