当其他进程读取 gps 设备文件时 gpsd 停止

gpsd stop when other process read gps device file



我有一台 Ubuntu 计算机,在 /dev/ttyUSB3 处连接了 GPS 设备,gpsd 运行 很好。当我尝试从其他进程(例如 cat /dev/ttyUSB3)读取 /dev/ttyUSB3 时,gpsd 不再工作。我一直在尝试启动 gpsd 宽度调试选项并收到以下错误消息:

gpsd: INFO: closing GPS=/dev/ttyUSB3 (6)
gpsd: ERROR: select: Bad file descriptor

我的gpsd版本是:3.11~dev

谁能告诉我,为什么?
提前致谢。

已解决。

当有两个进程从同一个 tty 设备读取时,它们会相互干扰。 (http://www.tldp.org/LDP/nag2/x-087-2-serial.devices.html)