Browse Source

process_wrap: don't coerce process exit code to int32_t

On windows process exit codes can be greater than INT32_MAX. This used
to be not much of a problem - greater values would just come out
negative. However since ca9eb71 a negative result value indicates that
uv_spawn() has failed, so this is no longer acceptable.
v0.11.7-release
Bert Belder 12 years ago
parent
commit
87405b0d98
  1. 2
      src/process_wrap.cc

2
src/process_wrap.cc

@ -275,7 +275,7 @@ class ProcessWrap : public HandleWrap {
assert(&wrap->process_ == handle);
Local<Value> argv[] = {
Integer::New(exit_status, node_isolate),
Number::New(node_isolate, static_cast<double>(exit_status)),
OneByteString(node_isolate, signo_string(term_signal))
};

Loading…
Cancel
Save