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

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

Issue 2798463002: Fixed incorrect call to Write from process_win.cc (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | 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 #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_WINDOWS) 8 #if defined(HOST_OS_WINDOWS)
9 9
10 #include "bin/process.h" 10 #include "bin/process.h"
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 } 952 }
953 953
954 954
955 BOOL WINAPI SignalHandler(DWORD signal) { 955 BOOL WINAPI SignalHandler(DWORD signal) {
956 MutexLocker lock(signal_mutex); 956 MutexLocker lock(signal_mutex);
957 const SignalInfo* handler = signal_handlers; 957 const SignalInfo* handler = signal_handlers;
958 bool handled = false; 958 bool handled = false;
959 while (handler != NULL) { 959 while (handler != NULL) {
960 if (handler->signal() == signal) { 960 if (handler->signal() == signal) {
961 int value = 0; 961 int value = 0;
962 Socket::Write(handler->fd(), &value, 1); 962 SocketBase::Write(handler->fd(), &value, 1);
963 handled = true; 963 handled = true;
964 } 964 }
965 handler = handler->next(); 965 handler = handler->next();
966 } 966 }
967 return handled; 967 return handled;
968 } 968 }
969 969
970 970
971 intptr_t GetWinSignal(intptr_t signal) { 971 intptr_t GetWinSignal(intptr_t signal) {
972 switch (signal) { 972 switch (signal) {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 } 1051 }
1052 delete handler; 1052 delete handler;
1053 } 1053 }
1054 1054
1055 } // namespace bin 1055 } // namespace bin
1056 } // namespace dart 1056 } // namespace dart
1057 1057
1058 #endif // defined(HOST_OS_WINDOWS) 1058 #endif // defined(HOST_OS_WINDOWS)
1059 1059
1060 #endif // !defined(DART_IO_DISABLED) 1060 #endif // !defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698