From 306464056c8af8d00798b5ef9195950bd6502314 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 12 Sep 2020 11:05:45 +0200 Subject: sys/test/test: add a hanging test Ensure that we can handle hanging syscalls in all modes. --- executor/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index ca24ffd07..e63f9b224 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -950,7 +950,7 @@ void copyout_call_results(thread_t* th) void write_call_output(thread_t* th, bool finished) { uint32 reserrno = 999; - const bool blocked = th != last_scheduled; + const bool blocked = finished && th != last_scheduled; uint32 call_flags = call_flag_executed | (blocked ? call_flag_blocked : 0); if (finished) { reserrno = th->res != -1 ? 0 : th->reserrno; -- cgit mrf-deployment