diff options
-rw-r--r-- | winsup/cygwin/tty.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index 80465ea..9a29524 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); } |