[fuchsia] Use 0 instead of the deprecated MX_PORT_OPT_V2 option
Magenta has removed ports v1, and subsequently deprecated the need for the MX_PORT_OPT_V2 option. R=zra@google.com Review-Url: https://codereview.chromium.org/2973893002 .
This commit is contained in:
@@ -285,7 +285,7 @@ EventHandlerImplementation::EventHandlerImplementation()
|
||||
shutdown_ = false;
|
||||
// Create the port.
|
||||
port_handle_ = MX_HANDLE_INVALID;
|
||||
mx_status_t status = mx_port_create(MX_PORT_OPT_V2, &port_handle_);
|
||||
mx_status_t status = mx_port_create(0, &port_handle_);
|
||||
if (status != MX_OK) {
|
||||
// This is a FATAL because the VM won't work at all if we can't create this
|
||||
// port.
|
||||
|
||||
@@ -502,7 +502,7 @@ bool Process::Wait(intptr_t pid,
|
||||
|
||||
// Create a port, which is like an epoll() fd on Linux.
|
||||
mx_handle_t port;
|
||||
mx_status_t status = mx_port_create(MX_PORT_OPT_V2, &port);
|
||||
mx_status_t status = mx_port_create(0, &port);
|
||||
if (status != MX_OK) {
|
||||
Log::PrintErr("Process::Wait: mx_port_create failed: %s\n",
|
||||
mx_status_get_string(status));
|
||||
|
||||
Reference in New Issue
Block a user