From 084b0114a3e74ffddf1b1d71f5396317a2bbc90f Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 9 Jan 2008 16:45:25 +0000 Subject: - pmore: disable massive scroll for smooth output in pfterm - mbbsd: "dbg_myrev is not required", told by kcwu. just "gdb pid" will work. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3811 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'mbbsd/mbbsd.c') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 23fa1e73..7e6b52ab 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -217,10 +217,6 @@ abort_bbs(int sig) exit(0); } -#ifdef DEBUGSLEEP -static unsigned int dbg_myrev = 0; -#endif // DEBUGSLEEP - #ifdef GCC_NORETURN static void abort_bbs_debug(int sig) GCC_NORETURN; #endif @@ -297,8 +293,7 @@ abort_bbs_debug(int sig) #ifdef DEBUGSLEEP #ifndef VALGRIND - setproctitle("debug me!(%d)(%s,%d)[%08u]", sig, - cuser.userid, currstat, dbg_myrev); + setproctitle("debug me!(%d)(%s,%d)", sig, cuser.userid, currstat); #endif /* do this manually to prevent broken stuff */ /* will broken currutmp cause problems here? hope not... */ @@ -1511,24 +1506,6 @@ static int daemon_login(int argc, char *argv[], char *envp[]); static int check_ban_and_load(int fd); static int check_banip(char *host); -#ifdef DEBUGSLEEP - -static void -solve_symlink(const char *path) -{ - char buf[PATHLEN]; - char *pdot = NULL; - if (readlink(path, buf, sizeof(buf)-1) < 1) - return; - buf[PATHLEN-1] = 0; - pdot = strrchr(buf, '.'); - if (!pdot) - return; - dbg_myrev = (unsigned int)atoi(pdot+1); -} - -#endif // DEBUGSLEEP - int main(int argc, char *argv[], char *envp[]) { @@ -1541,10 +1518,6 @@ main(int argc, char *argv[], char *envp[]) Signal(SIGUSR1, SIG_IGN); Signal(SIGUSR2, SIG_IGN); -#ifdef DEBUGSLEEP - solve_symlink(argv[0]); -#endif // DEBUGSLEEP - #if defined(__GLIBC__) && defined(CRITICAL_MEMORY) #define MY__MMAP_THRESHOLD (1024 * 8) #define MY__MMAP_MAX (0) -- cgit v1.2.3