diff options
| -rw-r--r-- | src/util/pty/ChangeLog | 8 | ||||
| -rw-r--r-- | src/util/pty/cleanup.c | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index c897bea8b..6a9f4e6f5 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,11 +1,17 @@ + Sat Jan 27 01:13:34 1996 Mark Eichin <eichin@cygnus.com> * void_assoc.c (ptyint_void_association): if we don't have TIOCNOTTY (HP/UX 9 for example) don't try to use it. +Fri Jan 26 00:26:37 1996 Sam Hartman <hartmans@tertius.mit.edu> + + * cleanup.c (pty_cleanup): Update utmp only if update_utmp is true. + Tue Jan 16 13:52:22 1996 Sam Hartman <hartmans@tertius.mit.edu> - * void_assoc.c (ptyint_void_association): Move setsid call from open_ctty to void_association. + * void_assoc.c (ptyint_void_association): Move setsid call from + open_ctty to void_association. * logwtmp.c (pty_logwtmp): Pass user argument to update_wtmp. diff --git a/src/util/pty/cleanup.c b/src/util/pty/cleanup.c index 57d1258ca..31522a47e 100644 --- a/src/util/pty/cleanup.c +++ b/src/util/pty/cleanup.c @@ -1,7 +1,7 @@ /* * pty_cleanup: Kill processes associated with pty. * - * Copyright 1995 by the Massachusetts Institute of Technology. + * (C)Copyright 1995, 1996 by the Massachusetts Institute of Technology. * * * Permission to use, copy, modify, and distribute this software and @@ -28,7 +28,8 @@ long pty_cleanup (slave, pid, update_utmp) { int retval, fd; - pty_update_utmp(PTY_DEAD_PROCESS,0, "", slave, (char *)0, PTY_UTMP_USERNAME_VALID); + if (update_utmp) + pty_update_utmp(PTY_DEAD_PROCESS,0, "", slave, (char *)0, PTY_UTMP_USERNAME_VALID); (void)chmod(slave, 0666); (void)chown(slave, 0, 0); |
