GNURLOPT_NOSIGNAL(3)
π GNURLOPT_NOSIGNAL(3) π
okay so bestie, this page lives in the curl_easy_setopt options manual, and we are talking about the icon that is CURLOPT_NOSIGNAL β literally the "skip all signal handling" option. no cap, it's giving safety-for-threaded-girlies energy π«Ά
β¨ NAME β¨
CURLOPT_NOSIGNAL β skip all signal handling π
π¦ SYNOPSIS π¦
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_NOSIGNAL, long onoff);
πΈ DESCRIPTION πΈ
okay so if onoff is 1, libcurl will not use any functions that install signal handlers, and it will not use any functions that cause signals to be sent to the process. that's the whole vibe β¨
this option is here so multi-threaded unix applications can still set/use all timeout options etc, without risking getting signals. main character energy for your threads, honestly π§
if this option is set and libcurl has been built with the standard name resolver, timeouts will not occur while the name resolve takes place. so consider building libcurl with the c-ares or threaded resolver backends to enable asynchronous DNS lookups β that way you get timeouts for name resolves without the use of signals. lowkey important, bestie π
setting CURLOPT_NOSIGNAL(3) to 1 makes libcurl NOT ask the system to ignore SIGPIPE signals. those are otherwise sent by the system when trying to send data to a socket which is closed in the other end π libcurl makes an effort to never cause such SIGPIPEs to trigger, but some operating systems have no way to avoid them β and even on those that have, there are some corner cases when they may still happen, contrary to our desire. fr fr, it's not personal π
in addition, using CURLAUTH_NTLM_WB authentication could cause a SIGCHLD signal to be raised. just so you know π
π DEFAULT π
0
π AVAILABILITY π
added in 7.10 β
π RETURN VALUE π
returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. slay π«Ά
mwah π this lil page is from libcurl 7.37.0, dated 16 Jun 2014 β and yes, it's still GNURLOPT_NOSIGNAL(3) coded, bestie. go forth and handle your signals (or don't, that's literally the point) β¨ππ
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms