Add handlescope and flush to process.reallyExit()
This commit is contained in:
parent
ae1fc497bb
commit
6f92d8f3b0
@ -465,11 +465,10 @@ static Handle<Value> Umask(const Arguments& args){
|
|||||||
}
|
}
|
||||||
|
|
||||||
v8::Handle<v8::Value> Exit(const v8::Arguments& args) {
|
v8::Handle<v8::Value> Exit(const v8::Arguments& args) {
|
||||||
int r = 0;
|
HandleScope scope;
|
||||||
if (args.Length() > 0)
|
|
||||||
r = args[0]->IntegerValue();
|
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
exit(r);
|
Stdio::Flush();
|
||||||
|
exit(args[0]->IntegerValue());
|
||||||
return Undefined();
|
return Undefined();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user