Bugfix: Socket state can change between epoll and send

This commit is contained in:
Jason Hughes 2025-02-09 17:46:34 -05:00
parent a38edeb8a8
commit 61b2bb5a5e

View File

@ -132,6 +132,9 @@ int main(int argc, char **argv) {
exit(1);
}
// Ignore SIGPIPE. This is instead handled gracefully by datum_sockets
signal(SIGPIPE, SIG_IGN);
srand(time(NULL)); // Not used for anything secure, so this is fine.
curl_global_init(CURL_GLOBAL_ALL);