On Mon, 13 Sep 2021 17:46:44 -0700 (PDT)
Fred Wright <fw@fwright.net> wrote:
It looks like it's being called after the device is closed. Log
attached. Offending message at line 54.
Almost:
gpsd:INFO: closing GPS=udp://127.0.0.1:64963 (8)
gpsd:ERROR: SER: gpsd_serial_isatty(8) failed: Device not configured(6)
gpsd:IO: SER: gpsd_close(udp://127.0.0.1:64963), close(8)
The UDP socket is clearly not a tty. Your isatty() is correctly
returning 0, but then setting errno = 6 (Device not configured). But
that is not a POSIX legal errno from isatty().
And that is not even the proper POSIX.1-2001 description for errno = 6.
It should be:
6 ENXIO /* No such device or address */
Easy fix. Pushed to git head.
What OS? So I can notate why the non-POSIX code.