ssuda
db844b152a
process: don't use strdup()
file and cwd can be directly used from Utf8Value.
Conflicts:
src/process_wrap.cc
13 years ago
Bert Belder
3546383cf0
process_wrap: avoid leaking memory when throwing due to invalid arguments
13 years ago
Bert Belder
55e4d54927
Child process: support the `gid` and `uid` options
13 years ago
isaacs
a26bee8fa1
MakeCallback: Consistent symbol usage
13 years ago
ssuda
249c3c165a
Avoiding unnecessary ToString() calls
String::Utf8Value and String::AsciiValue constructors take Handle<Value>
So no need to convert to Handle<String>
13 years ago
ssuda
253ec6a63d
process: don't use strdup()
file and cwd can be directly used from Utf8Value.
13 years ago
Ben Noordhuis
ff4a9d381d
core: use proper #include directives
13 years ago
Ben Noordhuis
74a8215a86
Revert support for isolates.
It was decided that the performance benefits that isolates offer (faster spin-up
times for worker processes, faster inter-worker communication, possibly a lower
memory footprint) are not actual bottlenecks for most people and do not outweigh
the potential stability issues and intrusive changes to the code base that
first-class support for isolates requires.
Hence, this commit backs out all isolates-related changes.
Good bye, isolates. We hardly knew ye.
13 years ago
Ben Noordhuis
b07acb3808
child_process: fix segfault after failed spawn
The process handle is uninitialized when uv_spawn() fails so don't export the
handle to JS land when that happens. Attempts to close the uninitialized handle
resulted in segmentation faults and memory corruption.
Fixes #2481 .
13 years ago
Ryan Dahl
20ba454ef9
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
f168f7d702
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
356992fe4d
isolates: isolate-ify the main loop
13 years ago
Ryan Dahl
9d792f3183
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
87bb848268
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
c3346f6760
isolates: isolate-ify the main loop
13 years ago
Ben Noordhuis
cdcb1118c8
Remove stray NODE_MODULE() semi-colons.
13 years ago
Ryan Dahl
60818b957c
Add missing copyright headers
13 years ago
Ryan Dahl
6cc42927d8
Display sys_errno when UV_UNKNOWN is returned
13 years ago
Ryan Dahl
67b235735e
Remove support for cygwin
13 years ago
Jeroen Janssen
3e667804eb
Fix options_file_memory_leak
Fixes #1714 .
Fixes #1715 .
14 years ago
Ryan Dahl
21cc4c4985
Upgrade libuv to ea4271f
Required adding uv_default_loop() in many places.
14 years ago
Bert Belder
567470b136
Child processes: support windowsVerbatimArguments option
14 years ago
Ben Noordhuis
2bbb468428
child process: bind to libuv's kill process API
Fixes failing test test/simple/test-child-process-kill.js
14 years ago
Ryan Dahl
624dd38d89
child_process_uv: fix test/simple/test-child-process-env
14 years ago
Ryan Dahl
ef767a152b
child_process_uv: fix simple/test-child-process-cwd
14 years ago
Ryan Dahl
19a62589b2
child_process_uv: add exec, fix simple/test-child-process-exec-cwd
14 years ago
Ryan Dahl
7772f21b60
initial pass at lib/child_process_uv.js
14 years ago
Paul Querna
5501a5a641
Add stdlib include for free(), fixing build on linux after f01b241
14 years ago
Ryan Dahl
f01b241057
add wrapper for uv_spawn
process.binding('process_wrap')
14 years ago