forked from Ocean/datum_gateway
Bugfix: Socket state can change between epoll and send
This commit is contained in:
parent
a38edeb8a8
commit
61b2bb5a5e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user