shithub: libacme

Download patch

ref: 07844fca03a7c083a3ba6ab818e4df06510c57cd
parent: 1597080e847d73678ccc1746350d1e29aa7e226b
author: james palmer <james@biobuf.link>
date: Fri Jun 25 09:42:42 EDT 2021

awincreate, awinclose: open and close the right files

--- a/window.c
+++ b/window.c
@@ -35,7 +35,6 @@
 	w->id = atoi(buf);
 	w->addrfd = awinfsopen(w, "addr", ORDWR);
 	w->datafd = awinfsopen(w, "data", ORDWR);
-	w->eventfd = awinfsopen(w, "event", ORDWR);
 	w->bodyfd = awinfsopen(w, "body", OWRITE);
 
 	w->next = awins;
@@ -53,6 +52,7 @@
 
 	close(w->addrfd);
 	close(w->datafd);
+	close(w->bodyfd);
 	
 	temp = awins;
 	while(temp) {