mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
Made zclose() avoid calling close() when fd < 0.
This commit is contained in:
parent
66baaced5d
commit
0d6e174e23
@ -1117,8 +1117,9 @@ zclose(int fd)
|
||||
coprocin = -1;
|
||||
if (fd == coprocout)
|
||||
coprocout = -1;
|
||||
return close(fd);
|
||||
}
|
||||
return close(fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Get a file name relative to $TMPPREFIX which *
|
||||
|
Loading…
Reference in New Issue
Block a user