mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-14 01:08:01 +08:00
[fuchsia] Switch to fdio_pipe_half
fdio_pipe_half2 and fdio_pipe_half are now the same. We can complete the migration by switching back to the cleaner name. Change-Id: Ibf2ab290300e37adbb19df60f7b4869e8150ec5b Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/1643209 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Adam Barth <abarth@chromium.org>
This commit is contained in:
parent
c5f296c044
commit
76e761f7a6
@ -31,8 +31,8 @@ namespace {
|
||||
|
||||
void AddPipe(fdio_spawn_action_t* action, int target_fd, int* fd_out) {
|
||||
zx_handle_t handle = ZX_HANDLE_INVALID;
|
||||
zx_status_t status = fdio_pipe_half2(fd_out, &handle);
|
||||
ZX_CHECK(status == ZX_OK, status) << "fdio_pipe_half2";
|
||||
zx_status_t status = fdio_pipe_half(fd_out, &handle);
|
||||
ZX_CHECK(status == ZX_OK, status) << "fdio_pipe_half";
|
||||
action->action = FDIO_SPAWN_ACTION_ADD_HANDLE;
|
||||
action->h.id = PA_HND(PA_FD, target_fd);
|
||||
action->h.handle = handle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user