diff options
author | Andrew Tridgell <tridge@samba.org> | 1999-12-21 09:25:59 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1999-12-21 09:25:59 +0000 |
commit | e48c2d9937eea0667b8cd3332e49c06314ef31e7 (patch) | |
tree | 5b16bff92cb8e3a70735df7ce23ea76841ef6d44 /source/web | |
parent | 4951755413c11d4c5b9af4699a6e622056d52433 (diff) | |
download | samba-e48c2d9937eea0667b8cd3332e49c06314ef31e7.tar.gz samba-e48c2d9937eea0667b8cd3332e49c06314ef31e7.tar.xz samba-e48c2d9937eea0667b8cd3332e49c06314ef31e7.zip |
converted all our existing shared memory code to use a tdb database
instead of either sysv or mmap shared memory or lock files.
this means we can now completely remove
locking_shm.c
locking_slow.c
shmem.c
shmem_sysv.c
and lots of other things also got simpler
locking.c got a bit larger, but is much better compartmentalised now
Diffstat (limited to 'source/web')
-rw-r--r-- | source/web/statuspage.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source/web/statuspage.c b/source/web/statuspage.c index 8b7108c0b50..e3e10f09d5d 100644 --- a/source/web/statuspage.c +++ b/source/web/statuspage.c @@ -128,7 +128,6 @@ static int traverse_fn3(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf) /* show the current server status */ void status_page(void) { - pstring fname; char *v; int autorefresh=0; int refresh_interval=30; @@ -173,12 +172,7 @@ void status_page(void) refresh_interval = atoi(v); } - pstrcpy(fname,lp_lockdir()); - standard_sub_basic(fname); - trim_string(fname,"","/"); - pstrcat(fname,"/connections.tdb"); - - tdb = tdb_open(fname, 0, O_RDONLY, 0); + tdb = tdb_open(lock_path("connections.tdb"), 0, O_RDONLY, 0); if (tdb) tdb_traverse(tdb, traverse_fn1); printf("<H2>Server Status</H2>\n"); |