mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
more logging of exits from the central controller
This commit is contained in:
parent
e959908c51
commit
56a58f2b11
1 changed files with 12 additions and 0 deletions
|
@ -616,6 +616,10 @@ void PostgreSQL::membersDbWatcher()
|
||||||
}
|
}
|
||||||
PQfinish(conn);
|
PQfinish(conn);
|
||||||
conn = NULL;
|
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()
|
void PostgreSQL::networksDbWatcher()
|
||||||
|
@ -667,6 +671,10 @@ void PostgreSQL::networksDbWatcher()
|
||||||
}
|
}
|
||||||
PQfinish(conn);
|
PQfinish(conn);
|
||||||
conn = NULL;
|
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()
|
void PostgreSQL::commitThread()
|
||||||
|
@ -1143,6 +1151,10 @@ void PostgreSQL::commitThread()
|
||||||
}
|
}
|
||||||
|
|
||||||
PQfinish(conn);
|
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()
|
void PostgreSQL::onlineNotificationThread()
|
||||||
|
|
Loading…
Add table
Reference in a new issue