instead of after graceful stop loop has ended (which could
take a long time).
#include <yazpp/limit-connect.h>
#include <yaz/timing.h>
#include <yaz/log.h>
+#include <yaz/daemon.h>
#include "gduutil.hpp"
#include <iostream>
size_t i;
for (i = 0; i < m_p->m_ports.size(); i++)
m_p->az[i]->server("");
+ yaz_daemon_stop();
}
}
int no = m_p->mySocketManager.getNumberOfObservers();
mp::Package pack;
pack.router(*routerp).move();
yaz_log(YLOG_LOG, "metaproxy stop"); /* only for graceful stop */
- yaz_daemon_stop();
_exit(0);
}