summaryrefslogtreecommitdiff
path: root/libgps.xml
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-03-27 09:12:44 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-03-27 09:12:44 -0400
commitd819869db7c551b01ca61c6b63a67de263573d74 (patch)
treecfdb24ae1ee77d1c8615b095f9f9f6b00f61105f /libgps.xml
parentec60348ace513500cf29a09709ee402250ea2d9d (diff)
downloadgpsd-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.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgps.xml b/libgps.xml
index 28fb0a6b..5abb641a 100644
--- a/libgps.xml
+++ b/libgps.xml
@@ -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,