diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2012-06-06 21:19:14 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2012-06-07 23:20:56 +0400 |
commit | 3116522e7c33c579bbb8ac0ee12c27ff3ff9825c (patch) | |
tree | a0dd8d69df6934815c7db0fb158b66a961538f33 /src/process_wrap.cc | |
parent | c45522df4c1a316d304d2d08d641c5b9da8df148 (diff) | |
download | android-node-v8-3116522e7c33c579bbb8ac0ee12c27ff3ff9825c.tar.gz android-node-v8-3116522e7c33c579bbb8ac0ee12c27ff3ff9825c.tar.bz2 android-node-v8-3116522e7c33c579bbb8ac0ee12c27ff3ff9825c.zip |
child_process: spawn().ref() and spawn().unref()
Diffstat (limited to 'src/process_wrap.cc')
-rw-r--r-- | src/process_wrap.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/process_wrap.cc b/src/process_wrap.cc index 101d89b3fd..1dc3ce437e 100644 --- a/src/process_wrap.cc +++ b/src/process_wrap.cc @@ -67,6 +67,9 @@ class ProcessWrap : public HandleWrap { NODE_SET_PROTOTYPE_METHOD(constructor, "spawn", Spawn); NODE_SET_PROTOTYPE_METHOD(constructor, "kill", Kill); + NODE_SET_PROTOTYPE_METHOD(constructor, "ref", HandleWrap::Ref); + NODE_SET_PROTOTYPE_METHOD(constructor, "unref", HandleWrap::Unref); + target->Set(String::NewSymbol("Process"), constructor->GetFunction()); } |