Skip to content

Commit

Permalink
process_wrap: don't use uv_spawn2
Browse files Browse the repository at this point in the history
It was a temporary thing for the 0.6 branch only.
  • Loading branch information
piscisaureus committed Apr 28, 2012
1 parent d2dd9d1 commit 3bcbd14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/process_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class ProcessWrap : public HandleWrap {

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));

options.exit_cb = OnExit;
Expand Down Expand Up @@ -211,7 +211,7 @@ class ProcessWrap : public HandleWrap {
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) {
SetErrno(uv_last_error(uv_default_loop()));
Expand Down

0 comments on commit 3bcbd14

Please sign in to comment.