From 4282574c187e8ee7b0da98061a355b7c0c71b50d Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 15 May 2020 10:13:42 -0400 Subject: Revert "Send blank line after 10 minutes idle" This reverts commit 1d5c4a5e346f0a295818441eb37697be283130ec. This is fixed instead by pounce using TCP keepalive. --- chat.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'chat.c') diff --git a/chat.c b/chat.c index ea6e0c4..25c0824 100644 --- a/chat.c +++ b/chat.c @@ -272,7 +272,7 @@ int main(int argc, char *argv[]) { { .events = POLLIN, .fd = execPipe[0] }, }; while (!self.quit) { - int nfds = poll(fds, (self.restricted ? 2 : ARRAY_LEN(fds)), 600000); + int nfds = poll(fds, (self.restricted ? 2 : ARRAY_LEN(fds)), -1); if (nfds < 0 && errno != EINTR) err(EX_IOERR, "poll"); if (nfds > 0) { if (fds[0].revents) uiRead(); @@ -281,11 +281,6 @@ int main(int argc, char *argv[]) { if (fds[3].revents) execRead(); } - // XXX: Socket seems to just stop working when connected to something - // like pounce which sends no pings and there is no activity for a long - // time, so just send something... - if (!nfds) ircFormat("\r\n"); - if (signals[SIGHUP]) self.quit = "zzz"; if (signals[SIGINT] || signals[SIGTERM]) break; -- cgit 1.4.0 href='/exman/tree/FreeBSD?h=2063.93&id=42903aa6d5482af2377170017dd8d12c66cc1c2d'>tree commit diff
path: root/FreeBSD (unfollow)
Commit message (Collapse)Author
2021-08-26Add version number generatorJune McEnroe
2021-08-22Add ISC license headerJune McEnroe
2021-08-22Update to Linux man-pages 5.12Štěpán Němec
2021-06-21Add manuals for macOS 11.3June McEnroe
2021-05-08Update to OpenBSD 6.9June McEnroe
2021-04-26Update to Linux man-pages 5.11June McEnroe
2021-04-26Update to FreeBSD 13.0June McEnroe
2021-01-27Completely rewrite how manuals are fetched and installedJune McEnroe
Also add section 6 manuals from NetBSD and OpenBSD!
2020-12-14Update to man-pages-posix 2017-aJune McEnroe
2020-12-14Update to OpenBSD 6.8June McEnroe
2020-12-14Update to NetBSD 9.1June McEnroe
2020-12-14Update to man-pages 5.09June McEnroe
2020-12-14Update to FreeBSD 12.2June McEnroe
2020-06-08Update to OpenBSD 6.7June McEnroe
2020-05-04Add hack for macOS to search extra man sectionsJune McEnroe
2020-05-04Don't clear MANSECTJune McEnroe