diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-04-30 13:41:36 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-05-02 16:24:59 +0000 |
| commit | cf02e61c441d38e1eea04df5168aab7aee13f88f (patch) | |
| tree | 2dbd664d34e068d7ae9d362748278a25905b2e83 /executor | |
| parent | 3ba885bcb66dec1678d8842ddeb6805786d32a3f (diff) | |
pkg/ipc: consistently set ENOSYS for non-executed syscalls
Currently we set errno=999 in executor for non-finished syscalls,
but syscalls that were not even started still have errno=0.
They also don't have Executed flag, but it's still handy to have
a non-0 errno when the call is not successful.
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/executor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index c5bd43f7b..92b344e56 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -1114,7 +1114,7 @@ void copyout_call_results(thread_t* th) void write_call_output(thread_t* th, bool finished) { - uint32 reserrno = 999; + uint32 reserrno = ENOSYS; const bool blocked = finished && th != last_scheduled; uint32 call_flags = call_flag_executed | (blocked ? call_flag_blocked : 0); if (finished) { |
