diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:02:47 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:02:47 +0800 |
commit | 60b3015900838f0afbf3377fc3a75351be510cbe (patch) | |
tree | 4488111bc74655ed46406290bd982fa68c38a8d1 /mbbsd/mbbsd.c | |
parent | 5fdde9d65d7664bcff62833304144a26b2f74e30 (diff) | |
download | pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.tar pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.tar.gz pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.tar.bz2 pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.tar.lz pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.tar.xz pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.tar.zst pttbbs-60b3015900838f0afbf3377fc3a75351be510cbe.zip |
statistic
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2651 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 84c26470..e8447a1f 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -230,6 +230,7 @@ mysrand(void) void talk_request(int sig) { + STATINC(STAT_TALKREQUEST); bell(); bell(); if (currutmp->msgcount) { @@ -363,6 +364,7 @@ write_request(int sig) { int i, msgcount; + STATINC(STAT_WRITEREQUEST); #ifdef NOKILLWATERBALL if( reentrant_write_request ) /* kill again by shmctl */ return; @@ -1058,6 +1060,7 @@ start_client(void) setrlimit(RLIMIT_CPU, &rml); #endif + STATINC(STAT_LOGIN); /* system init */ nice(2); /* Ptt: lower priority */ login_start_time = time(0); @@ -1333,11 +1336,15 @@ static int shell_login(int argc, char *argv[], char *envp[]) { + STATINC(STAT_SHELLLOGIN); /* Give up root privileges: no way back from here */ setgid(BBSGID); setuid(BBSUID); chdir(BBSHOME); +#if defined(linux) && defined(DEBUG) +// mtrace(); +#endif use_shell_login_mode = 1; initsetproctitle(argc, argv, envp); |