diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-09-16 10:58:22 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-09-16 10:58:22 +0800 |
commit | ac241aafaead0a3f4db4a66bdc29d88e7e8f465a (patch) | |
tree | 665e81b38aeb901bbebf4b1300e47e56fa2ebf80 /mbbsd/mbbsd.c | |
parent | 4d00526c4b1a2cc3e60f5adcf7c8bb5a4dc20912 (diff) | |
download | pttbbs-ac241aafaead0a3f4db4a66bdc29d88e7e8f465a.tar pttbbs-ac241aafaead0a3f4db4a66bdc29d88e7e8f465a.tar.gz pttbbs-ac241aafaead0a3f4db4a66bdc29d88e7e8f465a.tar.bz2 pttbbs-ac241aafaead0a3f4db4a66bdc29d88e7e8f465a.tar.lz pttbbs-ac241aafaead0a3f4db4a66bdc29d88e7e8f465a.tar.xz pttbbs-ac241aafaead0a3f4db4a66bdc29d88e7e8f465a.tar.zst pttbbs-ac241aafaead0a3f4db4a66bdc29d88e7e8f465a.zip |
fix mail_reply(0, fhdr, 0); caused segv due to mail +r flag,
and make DEBUGSLEEP mode more robust (hope so)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3179 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 59ca1b1e..ed55c868 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -262,12 +262,13 @@ abort_bbs_debug(int sig) */ #ifdef DEBUGSLEEP + #ifndef VALGRIND 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... */ - if(currutmp) + if(currutmp && strncmp(cuser.userid, currutmp->userid, IDLEN) == EQUSTR) currutmp->mode = DEBUGSLEEPING; sleep(3600); /* wait 60 mins for debug */ |