From 8d048f454e623957dc42379565bb1ae247b3093f Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 14 Jun 2025 02:55:36 +0200 Subject: ostrace: Use smaller timeout in receive loop --- src/ostrace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/ostrace.c b/src/ostrace.c index 240d2fd..68eb6bf 100644 --- a/src/ostrace.c +++ b/src/ostrace.c @@ -214,9 +214,8 @@ void *ostrace_worker(void *arg) debug_info("Running"); while (oswt->client->parent) { - res = ostrace_error(service_receive(oswt->client->parent, (char*)&msgtype, 1, &received)); + res = ostrace_error(service_receive_with_timeout(oswt->client->parent, (char*)&msgtype, 1, &received, 100)); if (res == OSTRACE_E_TIMEOUT) { - debug_info("Nothing received, retrying\n"); continue; } if (res != OSTRACE_E_SUCCESS) { -- cgit v1.1-32-gdbae