From 16ac12f3ef6406b3c745a268006ee388bedaa9f8 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sat, 11 Aug 2007 16:24:56 +0000 Subject: [PATCH] - fixed the spnavd_x11 script to make error reporting more extensive, and the messages more reasonable. (fix contributed by: Doug LaRue). git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/spacenavd@6 ef983eb1-d774-4af8-acfd-baaf7b16a646 --- spnavd_x11 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/spnavd_x11 b/spnavd_x11 index 83226c6..57e786c 100755 --- a/spnavd_x11 +++ b/spnavd_x11 @@ -28,7 +28,15 @@ fi pid="`pidof spacenavd`" if [ -n "$pid" ]; then kill $sig $pid - echo "signalled spacenavd, it should now start sending X events." + if [ $? = 0 ]; then + if [ $sig = '-usr1' ]; then + echo "signalled spacenavd, it should now start sending X events." + else + echo "signalled spacenavd, stopped sending X events." + fi + else + echo "sending signal to spacenavd failed." + fi else echo "spacenavd daemon is not running, nothing to do." fi