int main(int argc, char* argv[]) { #ifdef ICE_STATIC_LIBS Ice::registerIceSSL(false); Ice::registerIceWS(true); #endif #ifndef _WIN32 // // Set SIGPIPE action // struct sigaction action; action.sa_handler = &testAction; sigemptyset(&action.sa_mask); action.sa_flags = 0; sigaction(SIGPIPE, &action, 0); #endif ClientApp app; #if defined(__APPLE__) || defined(ICE_OS_UWP) int result = app._main(argc, argv); #else int result = app.main(argc, argv); #endif #ifndef _WIN32 // // Check SIGPIPE was properly reset to old action // struct sigaction newAction; sigaction(SIGPIPE, 0, &newAction); test(action.sa_handler == &testAction); #endif return result; }