Displaying 2 results from an estimated 2 matches for "coproc_pid".
2014 Mar 23
1
Bug#742397: xen-utils-common: /etc/init.d/dom0weight is hardcoded to use xm
...name \(.*\))$/\1/p'
}
check_running()
{
xen domid "$1" > /dev/null 2>&1
return $?
}
timeout_coproc()
{
local TIMEOUT=$1
shift
coproc "$@" 2>&1 1>/dev/null
local COPROC_OUT
exec {COPROC_OUT}<&"${COPROC[0]}"
local PID="$COPROC_PID"
for no in $(seq 0 $TIMEOUT); do
if [ -z "$COPROC_PID" ]; then break; fi
sleep 1
log_action_cont_msg
done
kill -INT "$COPROC_PID" >/dev/null 2>&1
wait $PID
local rc=$?
log_action_end_msg $rc
[ $rc -gt 0 ] && cat <&$COPROC_O...
2012 Jun 24
3
Bug#678719: xen-utils-common: please label all created directories for SE Linux
...nfig_name()
{
xen create --quiet --dryrun --defconfig "$1" | sed -n 's/^.*(name \(.*\))$/\1/p'
}
check_running()
{
xen domid "$1" > /dev/null 2>&1
return $?
}
timeout_coproc()
{
TIMEOUT="$1"
for no in $(seq 0 $TIMEOUT); do
if [ -z "$COPROC_PID" ]; then return 0; fi
sleep 1
log_action_cont_msg
done
kill -INT "$COPROC_PID" >/dev/null 2>&1
wait $COPROC_PID
return 1
}
timeout_domain()
{
name="$1"
TIMEOUT="$2"
for no in $(seq 0 $TIMEOUT); do
if ! check_running "$name&...