X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fapplication%2Fhoople_service.cpp;h=317ada2465dac2cd1817ef7f4f3da8e4227404d8;hb=24b2947ed9364f3e83fa1bb544ff6b1fdbf0428f;hp=969a2c27e719d5688b86fc7a083b272e9fa5d942;hpb=32093917ca7f2341da0169cd1e7549c971e1055d;p=feisty_meow.git diff --git a/nucleus/library/application/hoople_service.cpp b/nucleus/library/application/hoople_service.cpp index 969a2c27..317ada24 100644 --- a/nucleus/library/application/hoople_service.cpp +++ b/nucleus/library/application/hoople_service.cpp @@ -113,10 +113,9 @@ 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? -#ifdef __UNIX__ +#ifndef _MSC_VER kill(pids[i], SIGHUP); -#endif -#ifdef __WIN32__ +#else //lame--goes to whole program. raise(SIGTERM); #endif @@ -151,13 +150,13 @@ 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. -#ifdef __UNIX__ +#ifndef _MSC_VER signal(SIGHUP, handle_OS_signal); #endif // setup a handler for interrupt (e.g. ctrl-C) also. signal(SIGINT, handle_OS_signal); -#ifdef __WIN32__ +#ifdef _MSC_VER signal(SIGBREAK, handle_OS_signal); #endif