mirror of https://github.com/BOINC/boinc.git
Mac: Cix compile errors
This commit is contained in:
parent
33bf4f7851
commit
9b97daa34f
|
@ -208,6 +208,7 @@ int ACTIVE_TASK::request_abort() {
|
|||
|
||||
#ifdef _WIN32
|
||||
static void kill_app_process(int pid, bool will_restart) {
|
||||
int retval = 0;
|
||||
HANDLE h = OpenProcess(READ_CONTROL | PROCESS_TERMINATE, false, pid);
|
||||
if (h == NULL) return;
|
||||
TerminateProcess(h, will_restart?0:EXIT_ABORTED_BY_CLIENT);
|
||||
|
@ -215,7 +216,8 @@ static void kill_app_process(int pid, bool will_restart) {
|
|||
#else
|
||||
static void kill_app_process(int pid, bool) {
|
||||
#ifdef SANDBOX
|
||||
int retval = kill_via_switcher(pid);
|
||||
int retval = 0;
|
||||
retval = kill_via_switcher(pid);
|
||||
if (retval && log_flags.task_debug) {
|
||||
msg_printf(0, MSG_INFO,
|
||||
"[task] kill_via_switcher() failed: %s",
|
||||
|
@ -223,7 +225,7 @@ static void kill_app_process(int pid, bool) {
|
|||
);
|
||||
}
|
||||
#endif
|
||||
int retval = kill(pid, SIGKILL);
|
||||
retval = kill(pid, SIGKILL);
|
||||
if (retval && log_flags.task_debug) {
|
||||
msg_printf(0, MSG_INFO,
|
||||
"[task] kill() failed: %s",
|
||||
|
|
|
@ -81,7 +81,7 @@ public:
|
|||
|
||||
// Determine if this the WCG branded version of the client
|
||||
// and connected to WCG.
|
||||
bool CWelcomePage::isWCGClient();
|
||||
bool isWCGClient();
|
||||
|
||||
////@begin CWelcomePage member variables
|
||||
wxStaticText* m_pTitleStaticCtrl;
|
||||
|
|
Loading…
Reference in New Issue