aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-07 03:48:02 +0000
committerChristopher Faylor <me@cgf.cx>2002-11-07 03:48:02 +0000
commitc9c5dcf02439e3dad0a9484a04947aeee644110b (patch)
tree00912d28a12fa16aea828dde66df3019aba24163
parentb2c708b47cc9393bd2dc9605033019695260a5c7 (diff)
downloadnewlib-unlabeled-1.45.8.zip
newlib-unlabeled-1.45.8.tar.gz
newlib-unlabeled-1.45.8.tar.bz2
* include/cygwin/version.h: Bump API minor number for below export.github/unlabeled-1.45.8unlabeled-1.45.8
* 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. * fhandler.h (fhandler_serial::vmin_): Declare as size_t. * fhandler_serial.cc (fhandler_serial::raw_read): Use correct type for minchars. (fhandler_serial::ioctl): Set errno if the ClearCommError fails. (fhandler_serial::tcsetattr): Use correct value for vmin_. (fhandler_serial::tcgetattr): Ditto. * fhandler_socket.cc (fhandler_socket::recvmsg): Call if from == NULL WSARecvFrom with fromlen = NULL.
-rw-r--r--winsup/cygwin/tty.cc1
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);
}