#include <signal.h>
#include "shar-utils.h"
+#include <log4cpp/Category.hh>
using namespace std;
using namespace saml;
using namespace shibboleth;
using namespace shibtarget;
+using namespace log4cpp;
#ifndef FD_SETSIZE
# define FD_SETSIZE 1024
IListener::ShibSocket sock;
// Accept the connection.
- if (ShibTargetConfig::getConfig().getINI()->getListener()->accept(listener, sock))
+ if (!ShibTargetConfig::getConfig().getINI()->getListener()->accept(listener, sock))
return false;
// We throw away the result because the children manage themselves...
static void shar_svc_run(IListener::ShibSocket& listener, const Iterator<ShibRPCProtocols>& protos)
{
NDC ndc("shar_svc_run");
+ Category& log=Category::getInstance("SHAR");
while (shar_run) {
fd_set readfds;
continue;
default:
- new_connection(listener, protos);
+ if (!new_connection(listener, protos))
+ log.error("new_connection failed");
}
}
- printf("shar_svc_run ended\n");
+ log.info("shar_svc_run ended");
}
#ifdef WIN32