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.
This commit is contained in:
Bert Belder 2013-08-25 18:44:57 +02:00
parent 8333859735
commit 87405b0d98

View File

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