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

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

Issue 23428002: Fix android compilation by copying process_linux.cc to process_android.cc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/process_android.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #include "platform/globals.h" 5 #include "platform/globals.h"
6 #if defined(TARGET_OS_LINUX) 6 #if defined(TARGET_OS_LINUX)
7 7
8 #include "bin/process.h" 8 #include "bin/process.h"
9 9
10 #include <errno.h> // NOLINT 10 #include <errno.h> // NOLINT
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 pid_t pid; 326 pid_t pid;
327 int read_in[2]; // Pipe for stdout to child process. 327 int read_in[2]; // Pipe for stdout to child process.
328 int read_err[2]; // Pipe for stderr to child process. 328 int read_err[2]; // Pipe for stderr to child process.
329 int write_out[2]; // Pipe for stdin to child process. 329 int write_out[2]; // Pipe for stdin to child process.
330 int exec_control[2]; // Pipe to get the result from exec. 330 int exec_control[2]; // Pipe to get the result from exec.
331 int result; 331 int result;
332 332
333 bool initialized = ExitCodeHandler::EnsureInitialized(); 333 bool initialized = ExitCodeHandler::EnsureInitialized();
334 if (!initialized) { 334 if (!initialized) {
335 SetChildOsErrorMessage(os_error_message); 335 SetChildOsErrorMessage(os_error_message);
336 Log::PrintErr( 336 Log::PrintErr("Error initializing exit code handler: %s\n",
337 "Error initializing exit code handler: %s\n", 337 *os_error_message);
338 *os_error_message);
339 return errno; 338 return errno;
340 } 339 }
341 340
342 result = TEMP_FAILURE_RETRY(pipe(read_in)); 341 result = TEMP_FAILURE_RETRY(pipe(read_in));
343 if (result < 0) { 342 if (result < 0) {
344 SetChildOsErrorMessage(os_error_message); 343 SetChildOsErrorMessage(os_error_message);
345 Log::PrintErr("Error pipe creation failed: %s\n", *os_error_message); 344 Log::PrintErr("Error pipe creation failed: %s\n", *os_error_message);
346 return errno; 345 return errno;
347 } 346 }
348 FDUtils::SetCloseOnExec(read_in[0]); 347 FDUtils::SetCloseOnExec(read_in[0]);
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 696
698 697
699 intptr_t Process::CurrentProcessId() { 698 intptr_t Process::CurrentProcessId() {
700 return static_cast<intptr_t>(getpid()); 699 return static_cast<intptr_t>(getpid());
701 } 700 }
702 701
703 } // namespace bin 702 } // namespace bin
704 } // namespace dart 703 } // namespace dart
705 704
706 #endif // defined(TARGET_OS_LINUX) 705 #endif // defined(TARGET_OS_LINUX)
OLDNEW
« no previous file with comments | « runtime/bin/process_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698