From f17e7abda4a916404fe7c7d186e03dbeabea792f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 14 Dec 2021 22:31:04 +0100 Subject: indexamajig: Send sandbox ping while waiting for next frame This avoids the process getting killed while waiting e.g. between runs in an online context. --- src/im-sandbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/im-sandbox.c b/src/im-sandbox.c index 9115cb1b..8525227d 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -359,6 +359,7 @@ static int run_work(const struct index_args *iargs, Stream *st, /* Wait until an event is ready */ time_accounts_set(taccs, TACC_EVENTWAIT); + sb->shared->pings[cookie]++; set_last_task(sb->shared->last_task[cookie], "wait_event"); if ( sem_wait(sb->queue_sem) != 0 ) { ERROR("Failed to wait on queue semaphore: %s\n", -- cgit v1.2.3