mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
8333859735
commit
87405b0d98
1 file changed
+1
-1
+1
-1
@@ -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))
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user