summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-02 04:04:39 -0400
committerJune McEnroe <june@causal.agency>2019-11-02 04:04:39 -0400
commit868d2a69a793351698a771644f1cb65a6af88c4b (patch)
tree7def164ee90d464ae7655b247c120b814eddcfde
parentDocument pounce -U flag (diff)
downloadpounce-868d2a69a793351698a771644f1cb65a6af88c4b.tar.gz
pounce-868d2a69a793351698a771644f1cb65a6af88c4b.zip
Don't try to sendfd if connect failed
-rw-r--r--dispatch.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dispatch.c b/dispatch.c
index 3f28e7f..f5a83c6 100644
--- a/dispatch.c
+++ b/dispatch.c
@@ -263,8 +263,10 @@ int main(int argc, char *argv[]) {
 #endif
 			if (error) warn("%s", name);
 
-			len = sendfd(sock, event.ptr[i].fd);
-			if (len < 0) warn("%s", name);
+			if (!error) {
+				len = sendfd(sock, event.ptr[i].fd);
+				if (len < 0) warn("%s", name);
+			}
 
 			close(sock);
 			eventRemove(i);
9b55b6820fcad44806&follow=1'>Add The Girl Who Was Convinced...June McEnroe 2024-06-09Add photos from May 31June McEnroe 2024-06-09Use monospace on photo pagesJune McEnroe 2024-06-09Put lens and (future) film at the tops of photo pagesJune McEnroe 2024-05-22Remove use of sysexits.hJune McEnroe 2024-05-22Add photo descriptions from 05-03 and 05-06June McEnroe 2024-05-21Fix = precedence in whenJune McEnroe