aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc2
1 files changed, 1 insertions, 1 deletions
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;