| OLD | NEW | 
|    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  Loading... | 
|  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  |  | 
|  783 }  // namespace v8 |  775 }  // namespace v8 | 
| OLD | NEW |