diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-14 23:22:41 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-14 23:22:41 +0000 |
commit | 80d5215a56b3dba4ea0e165eacb36dac976044e9 (patch) | |
tree | 24397cfafc3b024ebdb2c2c8611aa0e7b364b01a /gpsd.hotplug | |
parent | 121d0ab329dce7f3ac5908258ef152a04820ef3a (diff) | |
download | gpsd-80d5215a56b3dba4ea0e165eacb36dac976044e9.tar.gz |
Prepare for 2.26 release. Wait for tty to go active in hotplug script.
Note, something seems to have come unstuck in hotplug request handling between
2.22 and 2.23. Next step, go back and fix that.
Diffstat (limited to 'gpsd.hotplug')
-rwxr-xr-x | gpsd.hotplug | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gpsd.hotplug b/gpsd.hotplug index 3bb79d41..fbb5d106 100755 --- a/gpsd.hotplug +++ b/gpsd.hotplug @@ -71,6 +71,10 @@ def hotplug(action, devpath): return else: tty = "/dev/" + subnodes[0] + + syslog.syslog("waiting for " + tty) + while not os.path.exists(tty): + time.sleep(1) syslog.syslog(tty + " has gone active") gpsd_control(action, tty) |