mirror of git://sourceware.org/git/glibc.git
Update.
* login/openpty.c (openpty): Make sure pty does not because controlling TTY.
This commit is contained in:
parent
6843299d9b
commit
6d8ec2b1b2
|
@ -1,5 +1,8 @@
|
||||||
1999-05-24 Ulrich Drepper <drepper@cygnus.com>
|
1999-05-24 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* login/openpty.c (openpty): Make sure pty does not because
|
||||||
|
controlling TTY.
|
||||||
|
|
||||||
* ctype/ctype.h: Don't optimize toupper/tolower for C++.
|
* ctype/ctype.h: Don't optimize toupper/tolower for C++.
|
||||||
|
|
||||||
1999-05-23 Roland McGrath <roland@baalperazim.frob.com>
|
1999-05-23 Roland McGrath <roland@baalperazim.frob.com>
|
||||||
|
|
|
@ -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.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
|
Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ openpty (int *amaster, int *aslave, char *name, struct termios *termp,
|
||||||
if (pts_name (master, &buf, sizeof (_buf)))
|
if (pts_name (master, &buf, sizeof (_buf)))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
slave = open (buf, O_RDWR);
|
slave = open (buf, O_RDWR | O_NOCTTY);
|
||||||
if (slave == -1)
|
if (slave == -1)
|
||||||
{
|
{
|
||||||
if (buf != _buf)
|
if (buf != _buf)
|
||||||
|
@ -131,7 +131,7 @@ openpty (int *amaster, int *aslave, char *name, struct termios *termp,
|
||||||
if (buf != _buf)
|
if (buf != _buf)
|
||||||
free (buf);
|
free (buf);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
close (master);
|
close (master);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue