X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fapplication%2Fhoople_service.cpp;h=d8fa224e0d16c5484717f30dc691618c7371c686;hb=09674294ea2ebcf0e4132200db9e081ebfd13cf5;hp=317ada2465dac2cd1817ef7f4f3da8e4227404d8;hpb=24b2947ed9364f3e83fa1bb544ff6b1fdbf0428f;p=feisty_meow.git diff --git a/nucleus/library/application/hoople_service.cpp b/nucleus/library/application/hoople_service.cpp index 317ada24..d8fa224e 100644 --- a/nucleus/library/application/hoople_service.cpp +++ b/nucleus/library/application/hoople_service.cpp @@ -58,7 +58,7 @@ int &hoople_service::_timer_period() { static int _tim = 0; return _tim; } ////////////// -static hoople_service *_global_hoople_service = NIL; +static hoople_service *_global_hoople_service = NULL_POINTER; // this static object is set by the setup() method. it should only come // into existence once during a program's lifetime. @@ -112,13 +112,13 @@ bool hoople_service::close_application(const astring &app_name) // zap all of them using our signal. for (int i = 0; i < pids.length(); i++) { -//would linux be better served with sigterm also? -#ifndef _MSC_VER +//hmmm: would linux be better served with sigterm instead, like we used to do for windoze? +//#ifndef _MSC_VER kill(pids[i], SIGHUP); -#else -//lame--goes to whole program. - raise(SIGTERM); -#endif +//#else +////lame--goes to whole program. +// raise(SIGTERM); +//#endif //hmmm: check results... } @@ -150,15 +150,15 @@ bool hoople_service::setup(const astring &app_name, int timer_period) // setup signal handler for HUP signal. this is the one used to tell us // to leave. -#ifndef _MSC_VER +//#ifndef _MSC_VER signal(SIGHUP, handle_OS_signal); -#endif +//#endif // setup a handler for interrupt (e.g. ctrl-C) also. signal(SIGINT, handle_OS_signal); -#ifdef _MSC_VER - signal(SIGBREAK, handle_OS_signal); -#endif +//#ifdef _MSC_VER +// signal(SIGBREAK, handle_OS_signal); +//#endif return true; } @@ -208,7 +208,7 @@ bool hoople_service::launch_event_loop(hoople_service &alert, MSG msg; msg.hwnd = 0; msg.message = 0; msg.wParam = 0; msg.lParam = 0; - while (!alert.is_defunct() && (GetMessage(&msg, NIL, 0, 0)) { + while (!alert.is_defunct() && (GetMessage(&msg, NULL_POINTER, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); }