diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-07-09 22:06:34 -0500 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-07-09 22:07:36 -0500 |
commit | 6273b23a05ddfd1462068b5f5d8a3ba3ebe7ac3d (patch) | |
tree | 3c61ecebb1322554cef75035f5a6f6ecd6d9db1f /docs/FAQ | |
parent | 1cef8f0bc3de6374ffb2f573dc825c01bf7f9636 (diff) |
FAQ: expand the thread-safe section
... with a mention of *NOSIGNAL, based on talk in bug #1386
Diffstat (limited to 'docs/FAQ')
-rw-r--r-- | docs/FAQ | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1099,6 +1099,12 @@ FAQ your system has such. Note that you must never share the same handle in multiple threads. + libcurl's implementation of timeouts might use signals (depending on what it + was built to use for name resolving), and signal handling is generally not + thread-safe. Multi-threaded Applicationss that call libcurl from different + threads (on different handles) might want to use CURLOPT_NOSIGNAL, e.g.: + + curl_easy_setopt(handle, CURLOPT_NOSIGNAL, true); If you use a OpenSSL-powered libcurl in a multi-threaded environment, you need to provide one or two locking functions: |