Skip to content

Commit

Permalink
Workaround solution for nodejs#2721 as suggested by @evanlucas
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher J. Brody committed Sep 7, 2015
1 parent 6d34031 commit fb578f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class ProcessWrap : public HandleWrap {
options->stdio[i].data.stream = stream;
} else {
Local<String> fd_key = env->fd_string();
int fd = static_cast<int>(stdio->Get(fd_key)->IntegerValue());
int fd = static_cast<int>(stdio->Get(fd_key)->Int32Value());
options->stdio[i].flags = UV_INHERIT_FD;
options->stdio[i].data.fd = fd;
}
Expand Down

0 comments on commit fb578f5

Please sign in to comment.