From 4248a1d7f87624369b1d64eea620532d101b578d Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 7 Nov 2002 02:19:52 +0000 Subject: * include/cygwin/version.h: Bump API minor number for below export. * cygwin.din (pututline): New exported function. * syscalls.cc (login): Use pututiline(). (setutent): Open utmp as read/write. (endutent): Check if utmp file is open. (utmpname): call endutent() to close current utmp file. (getutid): Enable all cases, use strncmp() to compare ut_id fields. (pututline): New. * tty.cc (create_tty_master): Set ut_pid to current pid. --- winsup/cygwin/tty.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/cygwin/tty.cc') diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index 80465ea5d..9a295244f 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -88,6 +88,7 @@ create_tty_master (int ttynum) cygwin_gethostname (our_utmp.ut_host, sizeof (our_utmp.ut_host)); __small_sprintf (our_utmp.ut_line, "tty%d", ttynum); our_utmp.ut_type = USER_PROCESS; + our_utmp.ut_pid = myself->pid; myself->ctty = ttynum; login (&our_utmp); } -- cgit v1.2.3