mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
initial pass at lib/child_process_uv.js
This commit is contained in:
1 parent
d3d8f1b972
commit
7772f21b60
6 files changed
+31
-6
No files matched your search
@@ -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';
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user