Commit 44f5fa2d authored by Brad Smith's avatar Brad Smith Committed by Daniel Black

Fix timeout(1) usage in wsrep_sst_mariabackup on *BSD

Also fix the usage of timeout(1) on NetBSD, OpenBSD and DragonFly.
parent 81f3e97b
......@@ -803,7 +803,8 @@ recv_joiner()
if [ $tmt -gt 0 ]; then
if [ -n "$(commandex timeout)" ]; then
local koption=0
if [ "$OS" = 'FreeBSD' ]; then
if [ "$OS" = 'FreeBSD' -o "$OS" = 'NetBSD' -o "$OS" = 'OpenBSD' -o \
"$OS" = 'DragonFly' ]; then
if timeout 2>&1 | grep -qw -F -- '-k'; then
koption=1
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment