Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(string[] args)
- {
- ZeroMQ test = new ZeroMQ();
- test.initialize();
- test.start();
- version(unittest){
- logInfo("All unit tests were successful.");
- return 0;
- } else {
- try if (!finalizeCommandLineOptions()) return 0;
- catch (Exception e) {
- logDiagnostic("Error processing command line: %s", e.msg);
- return 1;
- }
- lowerPrivileges();
- logDiagnostic("Running event loop...");
- int status;
- debug {
- status = runEventLoop();
- } else {
- try {
- status = runEventLoop();
- } catch( Throwable th ){
- logError("Unhandled exception in event loop: %s", th.msg);
- logDiagnostic("Full exception: %s", th.toString().sanitize());
- return 1;
- }
- }
- logDiagnostic("Event loop exited with status %d.", status);
- return status;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement