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