* subshell.c (pty_open_master) [IS_AIX]: Open /dev/ptc, not

/dev/ptmx.  From Sergey Pavlukhin <psi@dmng.ru>
This commit is contained in:
Pavel Roskin 2002-09-25 04:38:29 +00:00
parent c419491314
commit a3f9820755
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-09-25 Pavel Roskin <proski@gnu.org>
* subshell.c (pty_open_master) [IS_AIX]: Open /dev/ptc, not
/dev/ptmx. From Sergey Pavlukhin <psi@dmng.ru>
2002-09-24 Pavel Roskin <proski@gnu.org>
* screen.c (string_file_nuid): Fix a warning with uClibc.

View File

@ -1151,6 +1151,9 @@ static int pty_open_master (char *pty_name)
#ifdef HAVE_GETPT
/* getpt () is a GNU extension (glibc 2.1.x) */
pty_master = getpt ();
#elif IS_AIX
strcpy (pty_name, "/dev/ptc");
pty_master = open (pty_name, O_RDWR);
#else
strcpy (pty_name, "/dev/ptmx");
pty_master = open (pty_name, O_RDWR);