Switch out custom wakeup system for timerfd.

This commit is contained in:
Ian Gulliver
2016-03-08 21:53:57 -08:00
parent 3985182304
commit b915f38dca
4 changed files with 41 additions and 60 deletions

View File

@@ -111,7 +111,7 @@ static void outgoing_connect_result(struct outgoing *outgoing, int result) {
default:
LOG(outgoing->id, "Can't connect to %s/%s: %s", hbuf, sbuf, strerror(result));
peer_close(&outgoing->peer);
assert(!close(outgoing->peer.fd));
outgoing->addr = outgoing->addr->ai_next;
// Tail recursion :/
outgoing_connect_next(outgoing);