diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-06-10 04:50:01 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-06-10 04:50:01 +0000 |
commit | 80c1c25c8f0aac3a5b27255bc380a638acc63526 (patch) | |
tree | 04e33d718f2de43ccfb56f73f139385a0f20735a /gpsfake.py | |
parent | 166257cea5a321f24c2efe07e22af9375472e9c3 (diff) | |
download | gpsd-80c1c25c8f0aac3a5b27255bc380a638acc63526.tar.gz |
Work around the bugginess of fuser -s prior to version 23 of psmisc.
Diffstat (limited to 'gpsfake.py')
-rw-r--r-- | gpsfake.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -206,7 +206,7 @@ class FakeGPS: "Is the slave device of this pty opened?" if self.verbose: sys.stderr.write("slave_is_open() begins") - isopen = os.system("fuser -s " + self.slave) == 0 + isopen = os.system("fuser " + self.slave + " > /dev/null 2>&1") == 0 if self.verbose: sys.stderr.write("slave_is_open() ends") return isopen |