Use utempter to update utmp if it's around for configure, from madmaverick9 at

roxxmail dot eu.
This commit is contained in:
Nicholas Marriott
2014-02-24 23:07:22 +00:00
parent 488583dc8d
commit 4273c1b80e
4 changed files with 25 additions and 0 deletions

View File

@ -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;