=== modified file 'bin/tailwhile' --- bin/tailwhile 2019-02-20 10:51:32 +0000 +++ bin/tailwhile 2019-02-20 00:57:54 +0000 @@ -1,32 +1,12 @@ #!/bin/zsh -if ! zmodload zsh/zselect; then - shift - exec "$@" -fi - if (($+commands[tailf])); then - coproc tailf -0 $1 + tailf -0 $1 & else - coproc tail -0 -F $1 + tail -F $1 & fi shift -"$@" | { - exec 3<& p - while true; do - unset FDS - if zselect -A FDS -r 0 3; then - if ((${+FDS[3]})); then - if IFS= read -t 1 -r -u 3 line; then - printf >&2 ">> %s\n" "$line" - fi - fi - if ((${+FDS[0]})); then - IFS= read line || break - printf "%s\n" "$line" - fi - elif (($#FDS)); then - break - fi - done -} -exit $pipestatus[1] +"$@" +ret=$? +kill %1 +wait +exit $ret === modified file 'etc/init.d/zsv-wait' --- etc/init.d/zsv-wait 2019-02-20 10:51:32 +0000 +++ etc/init.d/zsv-wait 2014-10-08 19:52:32 +0000 @@ -3,7 +3,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -: ${ZSV_LOGFILE:=/var/log/msg/current} +: ${ZSV_LOGFILE:=/var/log/messages} : ${SVDIR:=/run/service} #depend() {