Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2866)

Side by Side Diff: runtime/bin/process_fuchsia.cc

Issue 2973893002: [fuchsia] Use 0 instead of the deprecated MX_PORT_OPT_V2 option (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/bin/eventhandler_fuchsia.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #if !defined(DART_IO_DISABLED) 5 #if !defined(DART_IO_DISABLED)
6 6
7 #include "platform/globals.h" 7 #include "platform/globals.h"
8 #if defined(HOST_OS_FUCHSIA) 8 #if defined(HOST_OS_FUCHSIA)
9 9
10 #include "bin/process.h" 10 #include "bin/process.h"
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 // destructors. 495 // destructors.
496 BufferList out_data; 496 BufferList out_data;
497 BufferList err_data; 497 BufferList err_data;
498 union { 498 union {
499 uint8_t bytes[8]; 499 uint8_t bytes[8];
500 int32_t ints[2]; 500 int32_t ints[2];
501 } exit_code_data; 501 } exit_code_data;
502 502
503 // Create a port, which is like an epoll() fd on Linux. 503 // Create a port, which is like an epoll() fd on Linux.
504 mx_handle_t port; 504 mx_handle_t port;
505 mx_status_t status = mx_port_create(MX_PORT_OPT_V2, &port); 505 mx_status_t status = mx_port_create(0, &port);
506 if (status != MX_OK) { 506 if (status != MX_OK) {
507 Log::PrintErr("Process::Wait: mx_port_create failed: %s\n", 507 Log::PrintErr("Process::Wait: mx_port_create failed: %s\n",
508 mx_status_get_string(status)); 508 mx_status_get_string(status));
509 return false; 509 return false;
510 } 510 }
511 511
512 IOHandle* out_tmp = out_iohandle; 512 IOHandle* out_tmp = out_iohandle;
513 IOHandle* err_tmp = err_iohandle; 513 IOHandle* err_tmp = err_iohandle;
514 IOHandle* exit_tmp = exit_iohandle; 514 IOHandle* exit_tmp = exit_iohandle;
515 const uint64_t out_key = reinterpret_cast<uint64_t>(out_tmp); 515 const uint64_t out_key = reinterpret_cast<uint64_t>(out_tmp);
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 } 868 }
869 869
870 void Process::ClearSignalHandler(intptr_t signal, Dart_Port port) {} 870 void Process::ClearSignalHandler(intptr_t signal, Dart_Port port) {}
871 871
872 } // namespace bin 872 } // namespace bin
873 } // namespace dart 873 } // namespace dart
874 874
875 #endif // defined(HOST_OS_FUCHSIA) 875 #endif // defined(HOST_OS_FUCHSIA)
876 876
877 #endif // !defined(DART_IO_DISABLED) 877 #endif // !defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/eventhandler_fuchsia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698