libCurl SSL error after fork()

前端 未结 1 1947
-上瘾入骨i
-上瘾入骨i 2021-01-18 18:52

I\'m developing a FUSE driver and when I run it as a daemon (without the -f or -d flags) all https request made through libcurl fail. I was able to reproduce the error by ma

相关标签:
1条回答
  • 2021-01-18 19:26

    To make this work, you need to call curl_global_cleanup before fork and curl_global_init again after fork. Someone in the libcurl mailing list mentioned that this is a common problem when calling fork after initializing libraries that need to be initialized.

    0 讨论(0)
提交回复
热议问题