summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-01-31 14:02:53 -0800
committerGary E. Miller <gem@rellim.com>2015-01-31 14:02:53 -0800
commit711bf98ae12cc2ba788595bbaf16c32e3fa22204 (patch)
treec8af23e06dd4815abc0b20d1d3094b318e15e449
parent6ee9556f2fea231303a488f07a8b0e0a9f552dc4 (diff)
downloadgpsd-711bf98ae12cc2ba788595bbaf16c32e3fa22204.tar.gz
Document thread unsafe usage of strerror() in PPS thread.
strerror_r() is not a portable replacement and has its own problems.
-rw-r--r--ppsthread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ppsthread.c b/ppsthread.c
index 1f47db2c..8a1da980 100644
--- a/ppsthread.c
+++ b/ppsthread.c
@@ -2,6 +2,9 @@
* ppsthread.c - manage PPS watcher threads
*
* If you are not good at threads do not touch this file!
+ * For example: errno is thread safe; strerror() is not.
+ *
+ * FIXME: find a portable and thread safe replacement for strerror().
*
* It helps to know that there are two PPS measurement methods in
* play. One is defined by RFC2783 and typically implemented in the