process_wrap: don't use uv_spawn2
It was a temporary thing for the 0.6 branch only.
This commit is contained in:
parent
d2dd9d108d
commit
3bcbd14bb1
@ -101,7 +101,7 @@ class ProcessWrap : public HandleWrap {
|
|||||||
|
|
||||||
Local<Object> js_options = args[0]->ToObject();
|
Local<Object> js_options = args[0]->ToObject();
|
||||||
|
|
||||||
uv_process_options2_t options;
|
uv_process_options_t options;
|
||||||
memset(&options, 0, sizeof(uv_process_options_t));
|
memset(&options, 0, sizeof(uv_process_options_t));
|
||||||
|
|
||||||
options.exit_cb = OnExit;
|
options.exit_cb = OnExit;
|
||||||
@ -211,7 +211,7 @@ class ProcessWrap : public HandleWrap {
|
|||||||
options.flags |= UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS;
|
options.flags |= UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
int r = uv_spawn2(uv_default_loop(), &wrap->process_, options);
|
int r = uv_spawn(uv_default_loop(), &wrap->process_, options);
|
||||||
|
|
||||||
if (r) {
|
if (r) {
|
||||||
SetErrno(uv_last_error(uv_default_loop()));
|
SetErrno(uv_last_error(uv_default_loop()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user