about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-03-02 04:18:21 +0000
committerMiles Bader <miles@gnu.org>1997-03-02 04:18:21 +0000
commitf6b38b9a39a360a262be1ba19ffa8210105f0d95 (patch)
tree32f8ec7930205e80c9befed98ef246bedc7bbd75
parentced858d05f9514a0082f661aae29ba592aae28fb (diff)
downloadglibc-cvs/libc-970302.tar.gz
glibc-cvs/libc-970302.tar.xz
glibc-cvs/libc-970302.zip
Sat Mar 1 20:21:31 1997 Miles Bader <miles@gnu.ai.mit.edu> cvs/libc-970302
	* login/utmp_file.c (pututline_file): Correctly decide whether
	LAST_ENTRY matches DATA.
	Don't depend on ut_id ever being set.
	(proc_utmp_eq): New function.
	(internal_getut_r): Renamed from internal_getutid_r.
	Use proc_utmp_eq.

	* login/logout.c (logout): Change type of entry to be DEAD_PROCESS.

Tue Feb 25 19:42:50 1997  Miles Bader  <miles@gnu.ai.mit.edu>

	* sysdeps/mach/hurd/fcntlbits.h (O_NORW): New macro.
-rw-r--r--ChangeLog15
-rw-r--r--login/logout.c3
2 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 45bc59523b..9494721328 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+Sat Mar  1 20:21:31 1997  Miles Bader  <miles@gnu.ai.mit.edu>
+
+	* login/utmp_file.c (pututline_file): Correctly decide whether
+	LAST_ENTRY matches DATA.
+	Don't depend on ut_id ever being set.
+	(proc_utmp_eq): New function.
+	(internal_getut_r): Renamed from internal_getutid_r.
+	Use proc_utmp_eq.
+
+	* login/logout.c (logout): Change type of entry to be DEAD_PROCESS.
+
+Tue Feb 25 19:42:50 1997  Miles Bader  <miles@gnu.ai.mit.edu>
+
+	* sysdeps/mach/hurd/fcntlbits.h (O_NORW): New macro.
+
 1997-02-27 05:12  Ulrich Drepper  <drepper@cygnus.com>
 
 	* manual/Makefile: Add rules to run and distribute xtract-typefun.
diff --git a/login/logout.c b/login/logout.c
index a9656fd4e9..5ab5e618fb 100644
--- a/login/logout.c
+++ b/login/logout.c
@@ -55,6 +55,9 @@ logout (const char *line)
 #else
       time (&ut->ut_time);
 #endif
+#if _HAVE_UT_TYPE - 0
+      ut->ut_type = DEAD_PROCESS;
+#endif
 
       if (pututline (ut) >= 0)
 	result = 1;