diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-03-27 09:12:44 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-03-27 09:12:44 -0400 |
commit | d819869db7c551b01ca61c6b63a67de263573d74 (patch) | |
tree | cfdb24ae1ee77d1c8615b095f9f9f6b00f61105f /libgps.xml | |
parent | ec60348ace513500cf29a09709ee402250ea2d9d (diff) | |
download | gpsd-d819869db7c551b01ca61c6b63a67de263573d74.tar.gz |
gps_poll() now indicates when the daemon socket closes from the other side.
You get back -1 with errno not set; cgps.c now illustrates how to use this
in a polling loop. Documentation has been updated.
Diffstat (limited to 'libgps.xml')
-rw-r--r-- | libgps.xml | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -147,8 +147,9 @@ of responses, from the daemon and interprets it as though it were a query response (the return value is as for a query). <function>gps_poll()</function> returns the validity mask of the received structure. This function does a blocking read waiting for -data from the daemon; it returns 0 for success, or -1 on a Unix-level -read error. </para> +data from the daemon; it returns 0 for success, -1 with errno set on a +Unix-level read error, -1 with errno not set if the socket to +the daemon has closed. </para> <para><function>gps_waiting()</function> can be used to check whether there is data from the daemon. It returns true if there is, |