mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
26046: return an error if session's fd is unusable.
This commit is contained in:
parent
d7ebd94ff4
commit
ac38534728
2 changed files with 7 additions and 0 deletions
|
|
@ -74,6 +74,8 @@ while true; do
|
|||
if [[ $? -ne 0 || -n $TCP_FD_CLOSED ]]; then
|
||||
print "Session ${TCP_SESS}: fd $fd unusable." >&2
|
||||
unset TCP_FD_CLOSED
|
||||
mystat=1
|
||||
continue
|
||||
fi
|
||||
if [[ -n $TCP_OUTPUT ]]; then
|
||||
tcp_output -P "$TCP_OUTPUT" -S $TCP_SESS -F $fd -q "${(j. .)*}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue