~foura/libacme

07844fca03a7c083a3ba6ab818e4df06510c57cd — james palmer 5 months ago 1597080
awincreate, awinclose: open and close the right files
1 files changed, 1 insertions(+), 1 deletions(-)

M window.c
M window.c => window.c +1 -1
@@ 35,7 35,6 @@ awincreate(void)
	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 @@ awinclose(AWin *w)

	close(w->addrfd);
	close(w->datafd);
	close(w->bodyfd);
	
	temp = awins;
	while(temp) {