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

Side by Side Diff: src/d8-posix.cc

Issue 2478473003: [d8] cleanly force exit in d8 on windows. (Closed)
Patch Set: . Created 4 years, 1 month 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 | « src/d8.cc ('k') | src/d8-windows.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <errno.h> 5 #include <errno.h>
6 #include <fcntl.h> 6 #include <fcntl.h>
7 #include <signal.h> 7 #include <signal.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <sys/select.h> 10 #include <sys/select.h>
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 .ToLocalChecked(), 765 .ToLocalChecked(),
766 FunctionTemplate::New(isolate, SetUMask)); 766 FunctionTemplate::New(isolate, SetUMask));
767 os_templ->Set(String::NewFromUtf8(isolate, "mkdirp", NewStringType::kNormal) 767 os_templ->Set(String::NewFromUtf8(isolate, "mkdirp", NewStringType::kNormal)
768 .ToLocalChecked(), 768 .ToLocalChecked(),
769 FunctionTemplate::New(isolate, MakeDirectory)); 769 FunctionTemplate::New(isolate, MakeDirectory));
770 os_templ->Set(String::NewFromUtf8(isolate, "rmdir", NewStringType::kNormal) 770 os_templ->Set(String::NewFromUtf8(isolate, "rmdir", NewStringType::kNormal)
771 .ToLocalChecked(), 771 .ToLocalChecked(),
772 FunctionTemplate::New(isolate, RemoveDirectory)); 772 FunctionTemplate::New(isolate, RemoveDirectory));
773 } 773 }
774 774
775 void Shell::Exit(int exit_code) {
776 // Use _exit instead of exit to avoid races between isolate
777 // threads and static destructors.
778 fflush(stdout);
779 fflush(stderr);
780 _exit(exit_code);
781 }
782
775 } // namespace v8 783 } // namespace v8
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/d8-windows.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698