diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-03 00:47:52 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-03 00:47:52 +0800 |
commit | c23aeddfccf7f1c52ca4366f352bec75aa0c3a6f (patch) | |
tree | 9bc1838ce9f1908328d85ddb2877e56c5c111d1d /mbbsd/cal.c | |
parent | 2df1e51ac9891e87a315eddd67300b70a4dab998 (diff) | |
download | pttbbs-c23aeddfccf7f1c52ca4366f352bec75aa0c3a6f.tar pttbbs-c23aeddfccf7f1c52ca4366f352bec75aa0c3a6f.tar.gz pttbbs-c23aeddfccf7f1c52ca4366f352bec75aa0c3a6f.tar.bz2 pttbbs-c23aeddfccf7f1c52ca4366f352bec75aa0c3a6f.tar.lz pttbbs-c23aeddfccf7f1c52ca4366f352bec75aa0c3a6f.tar.xz pttbbs-c23aeddfccf7f1c52ca4366f352bec75aa0c3a6f.tar.zst pttbbs-c23aeddfccf7f1c52ca4366f352bec75aa0c3a6f.zip |
- cal: fix debugsleeping process considered as multi-login issue
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4265 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r-- | mbbsd/cal.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c index ca83d7fd..c0160ffd 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -13,9 +13,11 @@ is_playing(int unmode) if (p == USHM_SIZE) p = 0; uentp = &(SHM->uinfo[p]); - if (uentp->uid == usernum) - if (uentp->lockmode == unmode) - return 1; + if (uentp->mode == DEBUGSLEEPING) + continue; + if (uentp->uid == usernum && + uentp->lockmode == unmode) + return 1; } return 0; } |