projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae1fc49
)
Add handlescope and flush to process.reallyExit()
author
Ryan Dahl
<ry@tinyclouds.org>
Mon, 8 Feb 2010 05:59:56 +0000
(21:59 -0800)
committer
Ryan Dahl
<ry@tinyclouds.org>
Mon, 8 Feb 2010 05:59:56 +0000
(21:59 -0800)
src/node.cc
patch
|
blob
|
history
diff --git
a/src/node.cc
b/src/node.cc
index
5726578
..
493fad1
100644
(file)
--- a/
src/node.cc
+++ b/
src/node.cc
@@
-465,11
+465,10
@@
static Handle<Value> Umask(const Arguments& args){
}
v8::Handle<v8::Value> Exit(const v8::Arguments& args) {
- int r = 0;
- if (args.Length() > 0)
- r = args[0]->IntegerValue();
+ HandleScope scope;
fflush(stderr);
- exit(r);
+ Stdio::Flush();
+ exit(args[0]->IntegerValue());
return Undefined();
}