diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-24 01:12:17 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-24 01:12:17 +0000 |
commit | 61b17b60cf13aef6477fc9d0087e97faf95aaa2b (patch) | |
tree | f841f73485b8792402b29b0286973f091e743d87 /gpsfake.py | |
parent | a273c09407c99cd0dca26e958433067e3530ca36 (diff) | |
download | gpsd-61b17b60cf13aef6477fc9d0087e97faf95aaa2b.tar.gz |
Make the spawn command that launched the test daemon visible.
Diffstat (limited to 'gpsfake.py')
-rw-r--r-- | gpsfake.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -140,11 +140,11 @@ class DaemonInstance: self.pidfile = "/tmp/gpsfake_pid-%s" % os.getpid() def spawn(self, doptions, background=False, prefix=""): "Spawn a daemon instance." - spawncmd = "gpsd -N -F %s -P %s %s" % (self.control_socket, self.pidfile, doptions) - spawncmd = prefix + spawncmd.strip() + self.spawncmd = "gpsd -N -F %s -P %s %s" % (self.control_socket, self.pidfile, doptions) + self.spawncmd = prefix + self.spawncmd.strip() if background: - spawncmd += " &" - os.system(spawncmd) + self.spawncmd += " &" + os.system(self.spawncmd) def wait_pid(self): "Wait for the daemon, get its PID and a control-socket connection." while True: |