[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:
Adam Barth 2019-06-04 08:51:18 -07:00 committed by Commit Bot
parent c5f296c044
commit 76e761f7a6

View File

@ -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;