From b1f623c85339555c67393824a08b1bc5a36af499 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 30 Jun 2018 13:29:55 +0200 Subject: executor: fix zx_log_read return value It does not return status and breaks fallback signal. --- executor/executor_fuchsia.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'executor/executor_fuchsia.cc') 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; -- cgit mrf-deployment