diff -Naur vte-0.11.17.orig/gnome-pty-helper/gnome-utmp.c vte-0.11.17/gnome-pty-helper/gnome-utmp.c
--- vte-0.11.17.orig/gnome-pty-helper/gnome-utmp.c	2008-11-28 10:44:21.683473967 -0800
+++ vte-0.11.17/gnome-pty-helper/gnome-utmp.c	2008-11-28 10:47:01.869169368 -0800
@@ -158,6 +158,7 @@
 {
 	setutxent();
 	pututxline (ut);
+	endutxent();
 }
 #elif defined(HAVE_GETUTENT)
 static void
@@ -165,6 +166,7 @@
 {
 	setutent();
 	pututline (ut);
+	endutent();
 }
 #elif defined(HAVE_GETTTYENT)
 /* This variant is sutable for most BSD */
