diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-07 05:35:23 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-07 05:35:23 +0800 |
commit | e8fc08b9800ba86163e5bf43469cdc9f4b478b13 (patch) | |
tree | eb2dcd75cad19ac57b7e9d9cc29c63a850d8ad86 /util/shmsweep.c | |
parent | c0a6419aeceaeb93d5d9ccde393236d67ff8c72f (diff) | |
download | pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.gz pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.bz2 pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.lz pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.xz pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.zst pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.zip |
only one shared memory
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@296 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/shmsweep.c')
-rw-r--r-- | util/shmsweep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/shmsweep.c b/util/shmsweep.c index 01acb26b..94d5291a 100644 --- a/util/shmsweep.c +++ b/util/shmsweep.c @@ -8,6 +8,7 @@ #include "pttstruct.h" int main() { +#if 0 int i, shm, counter; struct utmpfile_t *utmpshm; @@ -25,7 +26,7 @@ int main() { } for(i = counter = 0; i < USHM_SIZE; i++) - if(utmpshm->uinfo[i].pid) { + if(SHM->uinfo[i].pid) { char buf[256]; userinfo_t *f; struct stat sb; @@ -39,5 +40,6 @@ int main() { } } printf("clear %d slots\n", counter); +#endif return 0; } |