diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-05-24 18:22:25 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-05-24 18:22:25 +0000 |
commit | 6d8ec2b1b2934abc8d951ccb534872f0086fda48 (patch) | |
tree | deee2378e0e6525718fe17a0411ed9561c15a435 /login/openpty.c | |
parent | 6843299d9b978aca10b5cb1be949492c61c5b092 (diff) | |
download | glibc-6d8ec2b1b2934abc8d951ccb534872f0086fda48.tar glibc-6d8ec2b1b2934abc8d951ccb534872f0086fda48.tar.gz glibc-6d8ec2b1b2934abc8d951ccb534872f0086fda48.tar.bz2 glibc-6d8ec2b1b2934abc8d951ccb534872f0086fda48.zip |
Update.glibc-2.1.1cvs/glibc-2_1_1
* login/openpty.c (openpty): Make sure pty does not because
controlling TTY.
Diffstat (limited to 'login/openpty.c')
-rw-r--r-- | login/openpty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/login/openpty.c b/login/openpty.c index 630061d8da..3bfb8d318a 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 <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))) 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; |