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:
5b7fb10
)
Fix issue in 5b7fb10
author
Ryan
<ry@tinyclouds.org>
Fri, 26 Jun 2009 22:13:37 +0000
(
00:13
+0200)
committer
Ryan
<ry@tinyclouds.org>
Fri, 26 Jun 2009 22:13:37 +0000
(
00:13
+0200)
src/node.cc
patch
|
blob
|
history
src/process.cc
patch
|
blob
|
history
diff --git
a/src/node.cc
b/src/node.cc
index
bdac740
..
930cb81
100644
(file)
--- a/
src/node.cc
+++ b/
src/node.cc
@@
-52,10
+52,9
@@
ObjectWrap::Attach ()
void
ObjectWrap::Detach ()
{
- if (attach_count_ > 0)
- attach_count_ -= 1;
+ if (attach_count_ > 0) attach_count_ -= 1;
- if(weak_ && attach_count_ == 0) {
+ if
(weak_ && attach_count_ == 0) {
V8::AdjustAmountOfExternalAllocatedMemory(-size());
delete this;
}
diff --git
a/src/process.cc
b/src/process.cc
index
65e2c2f
..
187cbba
100644
(file)
--- a/
src/process.cc
+++ b/
src/process.cc
@@
-224,8
+224,6
@@
Process::Shutdown ()
ev_child_stop(EV_DEFAULT_UC_ &child_watcher_);
/* XXX Kill the PID? */
pid_ = 0;
-
- Detach();
}
static inline int
@@
-504,5
+502,6
@@
Process::MaybeShutdown (void)
}
Shutdown();
+ Detach();
}
}