summaryrefslogtreecommitdiffstats
path: root/server-fn.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2014-02-24 23:07:22 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2014-02-24 23:07:22 +0000
commit4273c1b80e2eb321d44154fe1e82e0f11aabcbd5 (patch)
treedf9829c6469655834fbf39e3ba7b03d8a86fc358 /server-fn.c
parent488583dc8def345b32dafe5b4f9bdb0a280062d3 (diff)
Use utempter to update utmp if it's around for configure, from madmaverick9 at
roxxmail dot eu.
Diffstat (limited to 'server-fn.c')
-rw-r--r--server-fn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server-fn.c b/server-fn.c
index a00cadbd..30626984 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -361,6 +361,9 @@ server_destroy_pane(struct window_pane *wp)
old_fd = wp->fd;
if (wp->fd != -1) {
+#ifdef HAVE_UTEMPTER
+ utempter_remove_record(wp->fd);
+#endif
bufferevent_free(wp->event);
close(wp->fd);
wp->fd = -1;