8000 Avoid using a signal handler in libcurl · Issue #210 · cinemast/libjson-rpc-cpp · GitHub
[go: up one dir, main page]

Skip to content
Avoid using a signal handler in libcurl #210
Closed
@laudrup

Description

@laudrup

Libcurl by default adds a signal handler. This can cause very hard to debug errors in multithreaded applications as it is not well defined which thread will receive the signal.

Consider adding CURLOPT_NOSIGNAL to the options given to curl_easy_setopt to avoid this behaviour.

See here for more information:

https://curl.haxx.se/libcurl/c/CURLOPT_NOSIGNAL.html

I can make a pull request if you prefer, but this should be extremely simple to add.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0