vte r2232 - in trunk: . gnome-pty-helper



Author: chpe
Date: Sat Nov 29 23:51:44 2008
New Revision: 2232
URL: http://svn.gnome.org/viewvc/vte?rev=2232&view=rev

Log:
	Bug 465036 â gnome-pty-helper locks /var/run/utmp

	* gnome-pty-helper/gnome-utmp.c: (update_utmp): Close the utmp
	database after updating it. Patch by Kevin W. Rudd.

Modified:
   trunk/ChangeLog
   trunk/gnome-pty-helper/gnome-utmp.c

Modified: trunk/gnome-pty-helper/gnome-utmp.c
==============================================================================
--- trunk/gnome-pty-helper/gnome-utmp.c	(original)
+++ trunk/gnome-pty-helper/gnome-utmp.c	Sat Nov 29 23:51:44 2008
@@ -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 */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]