[dev] [dvtm] [PATCH] close(c->pty) to stop leaks
I noticed that pty numbers are never recycled after closing each window.
-Mark
diff --git a/dvtm.c b/dvtm.c
index bff057b..ae0c8f2 100644
--- a/dvtm.c
+++ b/dvtm.c
_AT_@ -665,6 +665,7 @@ setup() {
static void
destroy(Client *c) {
+ close(c->pty);
if (sel == c)
focusnextnm(NULL);
detach(c);
Received on Sat Sep 21 2013 - 15:47:10 CEST
This archive was generated by hypermail 2.3.0
: Sat Sep 21 2013 - 15:48:14 CEST