diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-06-30 13:29:55 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-06-30 13:29:55 +0200 |
| commit | b1f623c85339555c67393824a08b1bc5a36af499 (patch) | |
| tree | 51c6c229846f94e8479ee50c0a4f797b4c78f555 /executor/executor_fuchsia.cc | |
| parent | 57799a834f68e87e4e6b19cf024f0803e8e74805 (diff) | |
executor: fix zx_log_read return value
It does not return status and breaks fallback signal.
Diffstat (limited to 'executor/executor_fuchsia.cc')
| -rw-r--r-- | executor/executor_fuchsia.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/executor/executor_fuchsia.cc b/executor/executor_fuchsia.cc index c240f3bff..6d4819d32 100644 --- a/executor/executor_fuchsia.cc +++ b/executor/executor_fuchsia.cc @@ -38,7 +38,10 @@ long execute_syscall(const call_t* c, long a0, long a1, long a2, long a3, long a NONFAILING(res = c->call(a0, a1, a2, a3, a4, a5, a6, a7, a8)); if (strncmp(c->name, "zx_", 3) == 0) { // Convert zircon error convention to the libc convention that executor expects. - if (res == ZX_OK || !strcmp(c->name, "zx_clock_get") || !strcmp(c->name, "zx_ticks_get")) + if (res == ZX_OK || + !strcmp(c->name, "zx_log_read") || + !strcmp(c->name, "zx_clock_get") || + !strcmp(c->name, "zx_ticks_get")) return 0; errno = (-res) & 0x7f; return -1; |
