diff options
| author | Grant Limberg <grant.limberg@zerotier.com> | 2018-12-06 13:26:53 -0800 | 
|---|---|---|
| committer | Grant Limberg <grant.limberg@zerotier.com> | 2018-12-06 13:26:53 -0800 | 
| commit | 56a58f2b11d72a3c44eb124cc00b6ec0dd1ddda4 (patch) | |
| tree | 19c3947f7af00eb8b116b10fe7ebd4b07c88fa89 /controller | |
| parent | e959908c517b70a932ca5506909717cdee50b89c (diff) | |
| download | infinitytier-56a58f2b11d72a3c44eb124cc00b6ec0dd1ddda4.tar.gz infinitytier-56a58f2b11d72a3c44eb124cc00b6ec0dd1ddda4.zip | |
more logging of exits from the central controller
Diffstat (limited to 'controller')
| -rw-r--r-- | controller/PostgreSQL.cpp | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index e9eb6041..e4a2a90b 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -616,6 +616,10 @@ void PostgreSQL::membersDbWatcher()  	}  	PQfinish(conn);  	conn = NULL; +	if (_run == 1) { +		fprintf(stderr, "ERROR: %s membersDbWatcher should still be running! Exiting Controller.\n", _myAddressStr.c_str()); +		exit(9); +	}  }  void PostgreSQL::networksDbWatcher() @@ -667,6 +671,10 @@ void PostgreSQL::networksDbWatcher()  	}  	PQfinish(conn);  	conn = NULL; +	if (_run == 1) { +		fprintf(stderr, "ERROR: %s networksDbWatcher should still be running! Exiting Controller.\n", _myAddressStr.c_str()); +		exit(8); +	}  }  void PostgreSQL::commitThread() @@ -1143,6 +1151,10 @@ void PostgreSQL::commitThread()  	}  	PQfinish(conn); +	if (_run == 1) { +		fprintf(stderr, "ERROR: %s commitThread should still be running! Exiting Controller.\n", _myAddressStr.c_str()); +		exit(7); +	}  }  void PostgreSQL::onlineNotificationThread() | 
