summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-22 16:52:58 -0500
committerJune McEnroe <june@causal.agency>2019-12-22 16:52:58 -0500
commit407b8acb5a324c01fc5c2bd62573393d117fa78e (patch)
treee89dff9b37ae9c7c8d4618f889feb399637dc822 /bounce.c
parentExit when server gets POLLHUP (diff)
downloadpounce-407b8acb5a324c01fc5c2bd62573393d117fa78e.tar.gz
pounce-407b8acb5a324c01fc5c2bd62573393d117fa78e.zip
Revert "Exit when server gets POLLHUP"
Turns out the more likely thing is that the fd will just continue to be
POLLIN and produce zero-length reads.

This reverts commit 5707b15920a1ce57f01db0d592487d833218be9d.
Diffstat (limited to '')
-rw-r--r--bounce.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bounce.c b/bounce.c
index 8dc2850..2b1413d 100644
--- a/bounce.c
+++ b/bounce.c
@@ -413,10 +413,7 @@ int main(int argc, char *argv[]) {
 			if (!revents) continue;
 
 			if (event.fds[i].fd == server) {
-				if (revents & POLLIN) serverRecv();
-				if (revents & (POLLHUP | POLLERR)) {
-					errx(EX_UNAVAILABLE, "server closed connection");
-				}
+				serverRecv();
 				continue;
 			}
 
0a3d&follow=1'>Process htagml file line by lineJune McEnroe This simplifies some things, adds support for line number tag definitions, and should enable combining htagml with other preprocessors in the future. 2021-01-12Split fields by tab onlyJune McEnroe Also don't fail hard on non-forward-search definitions. 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated. 2021-01-09Add c -t flag to print expression typeJune McEnroe Also add missing float case. 2021-01-05Update taglineJune McEnroe