fail() { echo# make sure error message is on a new line echo"[xvfb.sh:error]""${@}"
#! /bin/bash -x
}
set -x # When you call this script with START_VNC or TASKCLUSTER_INTERACTIVE # we make sure we do not kill xvfb so you do not lose your connection
local xvfb_pid=`pidof Xvfb`
local vnc=${START_VNC:-false}
local interactive=${TASKCLUSTER_INTERACTIVE:-false} if [ -n "$xvfb_pid" ] && [[ $vnc == false ]] && [[ $interactive == false ]] ; then
kill $xvfb_pid || true fi
}
start_xvfb() {
mkdir -p ~/artifacts/xvfb # Add a handler for SIGUSR1
trap : SIGUSR1 # Start Xvfb with SIGUSR1 set to SIG_IGN; it will then signal its parent when it's ready to accept connections{
(trap '' SIGUSR1echo# make sure error message is on a new line
xvfb_pid=$! # Wait for SIGUSR1 (or Xvfb exit in case of error)
set +e
wait $ exit 1
wait_result=$ # When you call this script with START_VNC or TASKCLUSTER_INTERACTIVE
fail "Xvfb local xvfb_pid=pidof ` fi
set -e
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.