ref: 79f01cc808934ec40a8e5817cc088593abc65659
parent: 11b4f9111ac511b4670f6303934f0cd41695e0c9
author: Ori Bernstein <[email protected]>
date: Sun Nov 29 01:04:21 EST 2020
window management: fix fd leak we were opening win->revent, but never closing it. oops.
--- a/win.c
+++ b/win.c
@@ -162,6 +162,8 @@
close(w->addr);
if(w->event != nil)
Bterm(w->event);
+ if(w->revent != -1)
+ close(w->revent);
if(w->io)
closeioproc(w->io);
if(w->ctl != -1)
@@ -170,6 +172,7 @@
w->data = -1;
w->addr = -1;
w->event = nil;
+ w->revent = -1;
w->io = nil;
}