initial pass at lib/child_process_uv.js

This commit is contained in:
Ryan Dahl committed 2011-07-31 15:58:10 -07:00
1 parent d3d8f1b972
commit 7772f21b60
6 files changed
+31 -6

No files matched your search

+4
View File
@@ -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';
+2
View File
@@ -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;