From 6d8ec2b1b2934abc8d951ccb534872f0086fda48 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 24 May 1999 18:22:25 +0000 Subject: Update. * login/openpty.c (openpty): Make sure pty does not because controlling TTY. --- ChangeLog | 3 +++ login/openpty.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d2bfea0..4a94d4c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-05-24 Ulrich Drepper + * login/openpty.c (openpty): Make sure pty does not because + controlling TTY. + * ctype/ctype.h: Don't optimize toupper/tolower for C++. 1999-05-23 Roland McGrath diff --git a/login/openpty.c b/login/openpty.c index 630061d..3bfb8d3 100644 --- a/login/openpty.c +++ b/login/openpty.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998 Free Software Foundation, Inc. +/* Copyright (C) 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Zack Weinberg , 1998. @@ -108,7 +108,7 @@ openpty (int *amaster, int *aslave, char *name, struct termios *termp, if (pts_name (master, &buf, sizeof (_buf))) goto fail; - slave = open (buf, O_RDWR); + slave = open (buf, O_RDWR | O_NOCTTY); if (slave == -1) { if (buf != _buf) @@ -131,7 +131,7 @@ openpty (int *amaster, int *aslave, char *name, struct termios *termp, if (buf != _buf) free (buf); return 0; - + fail: close (master); return -1; -- cgit v1.1