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:
parent
8333859735
commit
87405b0d98
@ -275,7 +275,7 @@ class ProcessWrap : public HandleWrap {
|
|||||||
assert(&wrap->process_ == handle);
|
assert(&wrap->process_ == handle);
|
||||||
|
|
||||||
Local<Value> argv[] = {
|
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))
|
OneByteString(node_isolate, signo_string(term_signal))
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user