diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-25 04:24:48 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-25 04:24:48 +0000 |
commit | cd08e62279816f1aec35a6b46cc812f3637e8cc4 (patch) | |
tree | d2b33c5baf21ecbda5b0a8344f6e7b5229ff0d8f /gpsfake | |
parent | 54e5ff28a27421902288d3da207ffe2e48531ea6 (diff) | |
download | gpsd-cd08e62279816f1aec35a6b46cc812f3637e8cc4.tar.gz |
TestSession now does its own signal handling.
Diffstat (limited to 'gpsfake')
-rwxr-xr-x | gpsfake | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -101,9 +101,6 @@ test = gpsfake.TestSession(prefix=monitor, options=doptions) if pipe: test.reporter = sys.stdout.write -signal.signal(signal.SIGQUIT, lambda sig, frame: test.killall()) -signal.signal(signal.SIGINT, lambda sig, frame: test.killall()) - try: test.gps_add(logfile, speed=speed, pred=fakehook) except gpsfake.PacketError, e: @@ -116,11 +113,8 @@ except OSError: sys.stderr.write("gpsfake: can't open pty.\n") raise SystemExit, 1 -try: - test.client_add("w+r+\n") - test.cleanup(); -except KeyboardInterrupt: - test.killall() +test.client_add("w+r+\n") +test.cleanup(); if progress: baton.end() |