#414 polish: filename fix for windows, handling of existence and type of timeout

This commit is contained in:
Dirk 2016-09-27 22:15:57 +02:00
parent c6da054418
commit 2036e1e9e0
1 changed files with 14 additions and 2 deletions

View File

@ -7285,7 +7285,19 @@ find_openssl_binary() {
HAS_XMPP=true
if [[ "$OPENSSL_TIMEOUT" != "" ]]; then
if which timeout >&2 2>/dev/null ; then
# there are different "timeout". Check whether --preserve-status is supported
if timeout --help 2>/dev/null | grep -q 'preserve-status'; then
OPENSSL="timeout --preserve-status $OPENSSL_TIMEOUT $OPENSSL"
else
OPENSSL="timeout $OPENSSL_TIMEOUT $OPENSSL"
fi
else
outln
ignore_no_or_lame " neccessary binary \"timeout\" not found. Continue without timeout?"
[[ $? -ne 0 ]] && exit -2
unset OPENSSL_TIMEOUT
fi
fi
return 0
@ -7693,7 +7705,7 @@ parse_hn_port() {
prepare_logging() {
local fname_prefix="$1"
[[ -z "$fname_prefix" ]] && fname_prefix="$NODE:$PORT"
[[ -z "$fname_prefix" ]] && fname_prefix="$NODE"_"$PORT"
if "$do_logging"; then
if [[ -z "$LOGFILE" ]]; then