diff options
author | Thomas White <taw@physics.org> | 2021-12-14 22:31:04 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-12-17 16:27:51 +0100 |
commit | f17e7abda4a916404fe7c7d186e03dbeabea792f (patch) | |
tree | 6b6b12715a3fac96e2f8486950bb2d6ed5df633b /src | |
parent | 0c5f4739df52f8cf1782d7a608dfa49336e94844 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/im-sandbox.c | 1 |
1 files changed, 1 insertions, 0 deletions
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", |