mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-23 11:11:44 -05:00
Merge pull request #306 from jfmc/patch-1
pipe() ignored errors on filedes[1]
This commit is contained in:
@@ -896,7 +896,7 @@ int pipe(int filedes[2])
|
||||
return -1;
|
||||
}
|
||||
filedes[1] = _open_osfhandle(HCAST(int, h[1]), O_NOINHERIT);
|
||||
if (filedes[0] < 0) {
|
||||
if (filedes[1] < 0) {
|
||||
close(filedes[0]);
|
||||
CloseHandle(h[1]);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user