From: vimacs Date: Sat, 13 Feb 2010 12:19:58 +0000 (+0100) Subject: detaching and killing x should work now, maybe X-Git-Tag: Release-2010-05/1~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e814cde0d324e896d49e377751f8db127458eb7;p=pandora-libraries.git detaching and killing x should work now, maybe modified: testdata/scripts/pnd_run.sh --- diff --git a/testdata/scripts/pnd_run.sh b/testdata/scripts/pnd_run.sh index 38af244..493bf61 100755 --- a/testdata/scripts/pnd_run.sh +++ b/testdata/scripts/pnd_run.sh @@ -19,7 +19,7 @@ #cleanup # parse arguments -TEMP=`getopt -o p:e:a:b:s:m::u::n::x: -- "$@"` +TEMP=`getopt -o p:e:a:b:s:m::u::n::x::j: -- "$@"` if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi @@ -59,7 +59,8 @@ if [ ! $EXENAME ]; then fi fi - +fork () { +echo in fork! if [ $nox ]; then #the app doesnt want x to run, so we kill it and restart it once the app quits applist=$(lsof /usr/lib/libX11.so.6 | awk '{print $1}'| sort | uniq) whitelist=$(cat ~/pndtest/whitelist) #adjust this to a fixed whitelist, maybe in the config dir @@ -212,3 +213,7 @@ echo "starting x in 5s" sleep 5 sudo /etc/init.d/slim-init-init start fi +} +echo forking now! +fork & +disown \ No newline at end of file