Browse Source

Fixes to child process

v0.7.4-release
Bert Belder 14 years ago
parent
commit
a6f2082b33
  1. 3
      src/node_child_process_win32.cc

3
src/node_child_process_win32.cc

@ -524,7 +524,6 @@ int ChildProcess::do_spawn(eio_req *req) {
child->pid_ = GetProcessId(info.hProcess);
child->did_start_ = true;
watch(child);
LeaveCriticalSection(&child->info_lock_);
// Not interesting
CloseHandle(info.hThread);
@ -534,8 +533,8 @@ int ChildProcess::do_spawn(eio_req *req) {
}
// kill_me set or process failed to start
notify_spawn_failure(child);
LeaveCriticalSection(&child->info_lock_);
notify_spawn_failure(child);
return 0;
}

Loading…
Cancel
Save