Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-08-01 02:58:10 +0400
committerRyan Dahl <ry@tinyclouds.org>2011-08-01 02:58:10 +0400
commit7772f21b60e8b75dfaadd332c01bcae4e919dce9 (patch)
treee07a2ad4f1724eab89c3f2826ef7fe8cf165625e /src
parentd3d8f1b972e1fb99916b32647609ad58f6c16fd9 (diff)
initial pass at lib/child_process_uv.js
Diffstat (limited to 'src')
-rw-r--r--src/node.js4
-rw-r--r--src/process_wrap.cc2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/node.js b/src/node.js
index 86768876980..ab9ee171dff 100644
--- a/src/node.js
+++ b/src/node.js
@@ -411,6 +411,10 @@
case 'net':
return process.features.uv ? 'net_uv' : 'net_legacy';
+ case 'child_process':
+ return process.features.uv ? 'child_process_uv' :
+ 'child_process_legacy';
+
case 'timers':
return process.features.uv ? 'timers_uv' : 'timers_legacy';
diff --git a/src/process_wrap.cc b/src/process_wrap.cc
index 4b0f90a855b..6d9a230a9c0 100644
--- a/src/process_wrap.cc
+++ b/src/process_wrap.cc
@@ -149,6 +149,8 @@ class ProcessWrap : public HandleWrap {
wrap->SetHandle((uv_handle_t*)&wrap->process_);
assert(wrap->process_.data == wrap);
+ wrap->object_->Set(String::New("pid"), Integer::New(wrap->process_.pid));
+
if (options.args) {
for (int i = 0; options.args[i]; i++) free(options.args[i]);
delete [] options.args;