CURLOPT_NOSIGNAL.3 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .\" **************************************************************************
  2. .\" * _ _ ____ _
  3. .\" * Project ___| | | | _ \| |
  4. .\" * / __| | | | |_) | |
  5. .\" * | (__| |_| | _ <| |___
  6. .\" * \___|\___/|_| \_\_____|
  7. .\" *
  8. .\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
  9. .\" *
  10. .\" * This software is licensed as described in the file COPYING, which
  11. .\" * you should have received as part of this distribution. The terms
  12. .\" * are also available at https://curl.haxx.se/docs/copyright.html.
  13. .\" *
  14. .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. .\" * copies of the Software, and permit persons to whom the Software is
  16. .\" * furnished to do so, under the terms of the COPYING file.
  17. .\" *
  18. .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. .\" * KIND, either express or implied.
  20. .\" *
  21. .\" **************************************************************************
  22. .\"
  23. .TH CURLOPT_NOSIGNAL 3 "February 03, 2016" "libcurl 7.61.1" "curl_easy_setopt options"
  24. .SH NAME
  25. CURLOPT_NOSIGNAL \- skip all signal handling
  26. .SH SYNOPSIS
  27. #include <curl/curl.h>
  28. CURLcode curl_easy_setopt(CURL *handle, CURLOPT_NOSIGNAL, long onoff);
  29. .SH DESCRIPTION
  30. If \fIonoff\fP is 1, libcurl will not use any functions that install signal
  31. handlers or any functions that cause signals to be sent to the process. This
  32. option is here to allow multi-threaded unix applications to still set/use all
  33. timeout options etc, without risking getting signals.
  34. If this option is set and libcurl has been built with the standard name
  35. resolver, timeouts will not occur while the name resolve takes place.
  36. Consider building libcurl with the c-ares or threaded resolver backends to
  37. enable asynchronous DNS lookups, to enable timeouts for name resolves without
  38. the use of signals.
  39. Setting \fICURLOPT_NOSIGNAL(3)\fP to 1 makes libcurl NOT ask the system to
  40. ignore SIGPIPE signals, which otherwise are sent by the system when trying to
  41. send data to a socket which is closed in the other end. libcurl makes an
  42. effort to never cause such SIGPIPEs to trigger, but some operating systems
  43. have no way to avoid them and even on those that have there are some corner
  44. cases when they may still happen, contrary to our desire. In addition, using
  45. \fICURLAUTH_NTLM_WB\fP authentication could cause a SIGCHLD signal to be
  46. raised.
  47. .SH DEFAULT
  48. 0
  49. .SH AVAILABILITY
  50. Added in 7.10
  51. .SH RETURN VALUE
  52. Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.