Prevent Bash from closing stdin

This commit is contained in:
Nick Chambers 2021-07-12 01:42:50 -05:00 committed by Nick Chambers
parent 92f347e7ec
commit 2e001b8784
1 changed files with 1 additions and 1 deletions

2
rowbot
View File

@ -283,7 +283,7 @@ on_sys_exit_999_log() {
net_recv() {
declare -n sock_line=$1
IFS= read -r "$1" <&"$in_sock"
IFS= read -ru "$in_sock" "$1"
sock_line=${sock_line%$'\r'}
log_debug "received line: %s" "$sock_line"
}