mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 07:14:10 +08:00
fuchsia: Fix inverted CHECK condition in migration to fdio_spawn
Bug: crashpad:196 Change-Id: I7465669d7d7ea9e0692fc5e4e8df140b4d388cc1 Reviewed-on: https://chromium-review.googlesource.com/1081288 Reviewed-by: Scott Graham <scottmg@chromium.org> Commit-Queue: Scott Graham <scottmg@chromium.org>
This commit is contained in:
parent
1299754179
commit
51ebe79f06
@ -34,7 +34,7 @@ void AddPipe(fdio_spawn_action_t* action, int target_fd, int* fd_out) {
|
||||
zx_handle_t handle;
|
||||
uint32_t id;
|
||||
zx_status_t status = fdio_pipe_half(&handle, &id);
|
||||
ZX_CHECK(status < 0, status) << "Failed to create pipe.";
|
||||
ZX_CHECK(status >= 0, status) << "fdio_pipe_half";
|
||||
action->action = FDIO_SPAWN_ACTION_ADD_HANDLE;
|
||||
action->h.id = PA_HND(PA_HND_TYPE(id), target_fd);
|
||||
action->h.handle = handle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user