projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd22268
)
mrtg now reads the context list safely.
author
Dave West
<davew@uncensored.citadel.org>
Tue, 18 Mar 2008 15:01:22 +0000
(15:01 +0000)
committer
Dave West
<davew@uncensored.citadel.org>
Tue, 18 Mar 2008 15:01:22 +0000
(15:01 +0000)
citadel/modules/mrtg/serv_mrtg.c
patch
|
blob
|
history
diff --git
a/citadel/modules/mrtg/serv_mrtg.c
b/citadel/modules/mrtg/serv_mrtg.c
index dc3adfc3090ab02fa057c8635b52238ac81a942c..666e04a413561f976ea2468c53ddcc2fa0c211e2 100644
(file)
--- a/
citadel/modules/mrtg/serv_mrtg.c
+++ b/
citadel/modules/mrtg/serv_mrtg.c
@@
-83,6
+83,7
@@
void mrtg_users(void) {
struct CitContext *cptr;
+ begin_critical_section(S_SESSION_TABLE);
for (cptr = ContextList; cptr != NULL; cptr = cptr->next) {
if (cptr->internal_pgm == 0) {
@@
-94,7
+95,8
@@
void mrtg_users(void) {
}
}
-
+ end_critical_section(S_SESSION_TABLE);
+
mrtg_output(connected_users, active_users);
}