kopia lustrzana https://github.com/FreeSpacenav/spacenavd
- forgot to update the spnavd_ctl script to use the new pid location, this will
require a new release - removed unnecessary bits from the makefiles git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@75 ef983eb1-d774-4af8-acfd-baaf7b16a646pull/1/head v0.3.2
rodzic
19d6532630
commit
619dfe52a1
|
@ -5,7 +5,7 @@ ctl = spnavd_ctl
|
|||
CC = gcc
|
||||
INSTALL = install
|
||||
CFLAGS = -pedantic -Wall $(dbg) $(opt) $(x11)
|
||||
LDFLAGS = $(xlib) -lm
|
||||
LDFLAGS = $(xlib)
|
||||
|
||||
$(bin): $(obj)
|
||||
$(CC) -o $@ $(obj) $(LDFLAGS)
|
||||
|
|
1
spnavd.c
1
spnavd.c
|
@ -998,6 +998,7 @@ char *get_dev_path(void)
|
|||
if(errno != ENOENT) {
|
||||
fprintf(stderr, "failed to open %s: %s. this might hinder device detection\n",
|
||||
path, strerror(errno));
|
||||
continue;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ else
|
|||
fi
|
||||
|
||||
# detect daemon's process id
|
||||
pid=`cat /tmp/.spnavd.pid 2>/dev/null`
|
||||
pid=`cat /var/run/spnavd.pid 2>/dev/null`
|
||||
if [ $? != 0 ]; then
|
||||
pid=`ps -e | grep spacenavd | awk '{ print $1 }'`
|
||||
if [ -z "$pid" ]; then
|
||||
|
|
Ładowanie…
Reference in New Issue