From fe8e85a199ad3371e4f45461d291622c45079645 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 8 Nov 2019 08:41:45 -0800 Subject: [PATCH] Merge change from trunk into my cs_app.cpp so client will build --- client/cs_apps.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/client/cs_apps.cpp b/client/cs_apps.cpp index 253d6ea81d..c730f5e1b9 100644 --- a/client/cs_apps.cpp +++ b/client/cs_apps.cpp @@ -332,3 +332,22 @@ ACTIVE_TASK* ACTIVE_TASK_SET::lookup_slot(int slot) { } return NULL; } + +#ifndef SIM +// on startup, see if any active tasks have a finished file +// i.e. they finished as the client was shutting down +// +void ACTIVE_TASK_SET::check_for_finished_jobs() { + for (unsigned int i=0; ifinish_file_present(exit_code)) { + msg_printf(atp->wup->project, MSG_INFO, + "Found finish file for %s; exit code %d", + atp->result->name, exit_code + ); + atp->handle_exited_app(exit_code); + } + } +} +#endif