Version 1.0.5 terminalphone.sh

This commit is contained in:
Here ForAwhile 2026-02-19 13:17:12 +00:00
parent 28d71649fe
commit b3d84e6518

View file

@ -9,7 +9,7 @@ set -euo pipefail
# CONFIGURATION # CONFIGURATION
#============================================================================= #=============================================================================
APP_NAME="TerminalPhone" APP_NAME="TerminalPhone"
VERSION="1.0.4" VERSION="1.0.5"
BASE_DIR="$(dirname "$(readlink -f "$0")")" BASE_DIR="$(dirname "$(readlink -f "$0")")"
DATA_DIR="$BASE_DIR/.terminalphone" DATA_DIR="$BASE_DIR/.terminalphone"
TOR_DIR="$DATA_DIR/tor_data" TOR_DIR="$DATA_DIR/tor_data"
@ -653,8 +653,9 @@ cleanup_call() {
ORIGINAL_STTY="" ORIGINAL_STTY=""
# Close pipe file descriptors to unblock any blocking reads # Close pipe file descriptors to unblock any blocking reads
exec 3<&- 2>/dev/null || true # NOTE: must use { } group so 2>/dev/null doesn't permanently redirect stderr
exec 4>&- 2>/dev/null || true { exec 3<&-; } 2>/dev/null || true
{ exec 4>&-; } 2>/dev/null || true
# Kill all call-related processes by PID files # Kill all call-related processes by PID files
for pidfile in "$PID_DIR"/socat.pid "$PID_DIR"/socat_call.pid "$PID_DIR"/recv_loop.pid; do for pidfile in "$PID_DIR"/socat.pid "$PID_DIR"/socat_call.pid "$PID_DIR"/recv_loop.pid; do