projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
backout regular_cleanup changes
[l2tpns.git]
/
cluster.c
diff --git
a/cluster.c
b/cluster.c
index
725adc1
..
645403c
100644
(file)
--- a/
cluster.c
+++ b/
cluster.c
@@
-1,6
+1,6
@@
// L2TPNS Clustering Stuff
// L2TPNS Clustering Stuff
-char const *cvs_id_cluster = "$Id: cluster.c,v 1.26.2.1
0 2005/05/23 13:48:29
bodea Exp $";
+char const *cvs_id_cluster = "$Id: cluster.c,v 1.26.2.1
1 2005/05/30 02:55:40
bodea Exp $";
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
@@
-526,6
+526,10
@@
void cluster_check_master(void)
LOG(0, 0, 0, "Master timed out! Holding election...\n");
LOG(0, 0, 0, "Master timed out! Holding election...\n");
+ // In the process of shutting down, can't be master
+ if (main_quit)
+ return;
+
for (i = have_peers = 0; i < num_peers; i++)
{
if ((peers[i].timestamp + config->cluster_hb_timeout) < t)
for (i = have_peers = 0; i < num_peers; i++)
{
if ((peers[i].timestamp + config->cluster_hb_timeout) < t)