aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2018-10-10 10:00:41 -0700
committerDmitry Vyukov <dvyukov@google.com>2018-10-10 19:45:24 +0200
commit5f818b4b9f7640ea6c31c3cdf138e5d5004a4b00 (patch)
treeb3d2f8c8a30372eaedf9d7ea88adad32d448ab81
parent700f14a4ab9f27e16c542d6a60a5ffa6a24b706c (diff)
executor: Fuchsia: Use zx_task_resume_from_exception()
zx_task_resume() is deprecated; switch to using zx_task_resume_from_exception() instead.
-rw-r--r--executor/common_fuchsia.h4
-rw-r--r--pkg/csource/generated.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/executor/common_fuchsia.h b/executor/common_fuchsia.h
index d232f2a14..6c2381d28 100644
--- a/executor/common_fuchsia.h
+++ b/executor/common_fuchsia.h
@@ -84,9 +84,9 @@ static void* ex_handler(void* arg)
debug("zx_thread_write_state failed: %d\n", status);
}
}
- status = zx_task_resume(thread, ZX_RESUME_EXCEPTION);
+ status = zx_task_resume_from_exception(thread, port, 0);
if (status != ZX_OK) {
- debug("zx_task_resume failed: %d\n", status);
+ debug("zx_task_resume_from_exception failed: %d\n", status);
}
zx_handle_close(thread);
}
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go
index 9f780d219..f8a67d45d 100644
--- a/pkg/csource/generated.go
+++ b/pkg/csource/generated.go
@@ -514,9 +514,9 @@ static void* ex_handler(void* arg)
debug("zx_thread_write_state failed: %d\n", status);
}
}
- status = zx_task_resume(thread, ZX_RESUME_EXCEPTION);
+ status = zx_task_resume_from_exception(thread, port, 0);
if (status != ZX_OK) {
- debug("zx_task_resume failed: %d\n", status);
+ debug("zx_task_resume_from_exception failed: %d\n", status);
}
zx_handle_close(thread);
}