summaryrefslogtreecommitdiff
path: root/libgps.xml
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-06 07:14:40 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-03-06 07:14:40 -0500
commitb852278f33d6b280eed4107301e73ece96080ee5 (patch)
treee854fc36fb0b8d073aa4b96c12fd0702af8503f4 /libgps.xml
parent8ac5097c3f7c70788d175933fcbf6ca65788f16b (diff)
downloadgpsd-b852278f33d6b280eed4107301e73ece96080ee5.tar.gz
Comment and documentation polishing.
Diffstat (limited to 'libgps.xml')
-rw-r--r--libgps.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/libgps.xml b/libgps.xml
index d9f82db8..6d47282a 100644
--- a/libgps.xml
+++ b/libgps.xml
@@ -150,7 +150,11 @@ function is a convenience wrapper around a
<citerefentry><refentrytitle>select</refentrytitle><manvolnum>2</manvolnum></citerefentry>
call, and zeros <varname>errno</varname> on entry; you can test
<varname>errno</varname> after exit to get more information about
-error conditions.</para>
+error conditions. Warning: under the shared-memory interface there is
+a tiny race window between <function>gps_waiting()</function> and a
+following <function>gps_read()</function>; in that context, beause the
+latter does not block, it is probably better to write a simple read
+loop.</para>
<para><function>gps_unpack()</function> parses JSON from the argument
buffer into the target of the session structure pointer argument.