summaryrefslogtreecommitdiff
path: root/gpsfake
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-24 02:49:12 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-24 02:49:12 +0000
commite5e56cdc77c283b86ddba0b59e78d3bcb9c74e9c (patch)
treed0fb6ea11d96b77c5aec3cfc4d69701599f5e475 /gpsfake
parent8a1892ca51652cdb604af75885e90063bf1ba960 (diff)
downloadgpsd-e5e56cdc77c283b86ddba0b59e78d3bcb9c74e9c.tar.gz
Correct the arguments to gpsfake's daemon invocation.
Diffstat (limited to 'gpsfake')
-rwxr-xr-xgpsfake4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsfake b/gpsfake
index 729c25bc..c6740545 100755
--- a/gpsfake
+++ b/gpsfake
@@ -95,7 +95,7 @@ child = os.fork()
if child:
# Parent side
try:
- daemon.spawn(doptions, monitor)
+ daemon.spawn(doptions, prefix=monitor, background=False)
except OSError:
sys.stderr.write("gpsfake: '%s' failed.\n" % daemon.spawncmd)
os.kill(child, signal.SIGTERM)
@@ -106,7 +106,7 @@ else:
# Child side -- wait for daemon to make pidfile so we know it's running
daemon.wait_pid()
if not pipe or verbose:
- sys.stderr.write("gpsfake: '%s' launch OK.\n" % daemon.spawncmd)
+ sys.stderr.write("gpsfake: daemon launch OK.\n")
try:
daemon.add_device(fakegps.slave)
if pipe: