[dev] [dvtm] [PATCH] close(c->pty) to stop leaks

From: Mark Edgar <medgar123_AT_gmail.com>
Date: Sat, 21 Sep 2013 15:47:10 +0200

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