*/
void Application::RunEventLoop(void)
{
+#ifdef _DEBUG
double nextProfile = 0;
+#endif /* _DEBUG */
while (!m_ShuttingDown) {
Object::ClearHeldObjects();
executablePath = argv0;
bool foundSlash = false;
- for (int i = 0; i < argv0.GetLength(); i++) {
+ for (size_t i = 0; i < argv0.GetLength(); i++) {
if (argv0[i] == '/') {
foundSlash = true;
break;
outputbuf << "Process was terminated by signal " << WTERMSIG(status);
output = outputbuf.str();
exitcode = 128;
+ } else {
+ exitcode = 128;
}
#endif /* _MSC_VER */
*/
void SyslogLogger::ProcessLogEntry(const LogEntry& entry)
{
- char timestamp[100];
-
int severity;
switch (entry.Severity) {
case LogDebug:
*/
void TlsClient::HandleReadable(void)
{
- int result;
-
m_BlockRead = false;
m_BlockWrite = false;
- result = 0;
-
for (;;) {
char data[1024];
int rc;
std::random_shuffle(services.begin(), services.end());
- bool need_clear = false;
int delegated = 0;
/* re-assign services */
/* clear the service's current checker */
if (!checker.IsEmpty()) {
- need_clear = true;
service->SetChecker("");
if (oldEndpoint)