Skip to content

Commit

Permalink
win,init: if stdio is not available, do not exit (#29374)
Browse files Browse the repository at this point in the history
Fix #28820

(cherry picked from commit 2460b57)
  • Loading branch information
jaakkor2 authored and KristofferC committed Feb 11, 2019
1 parent 9ac35dd commit 6c4e27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ int uv_dup(uv_os_fd_t fd, uv_os_fd_t* dupfd) {
fd == NULL ||
fd == (HANDLE) -2) {
*dupfd = INVALID_HANDLE_VALUE;
return ERROR_INVALID_HANDLE;
return 0; // allow the execution to continue even if stdio is not available as in batchmode or without a console
}

current_process = GetCurrentProcess();
Expand Down

0 comments on commit 6c4e27d

Please sign in to comment.