1999-03-12 Miguel de Icaza <miguel@nuclecu.unam.mx>

* subshell.c (pty_open_slave): Glibc-2.1-based Linux kernels have
	grantpt() but they do lack SysV streams.  Handle this.  Noticed by
	Jakub Jelinek
This commit is contained in:
Miguel de Icaza 1999-03-12 18:46:33 +00:00
parent 49570e5d3e
commit ab76cf3097
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
1999-03-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
* subshell.c (pty_open_slave): Glibc-2.1-based Linux kernels have
grantpt() but they do lack SysV streams. Handle this. Noticed by
Jakub Jelinek
1999-03-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* util.h: Added prototype for g_readlink(). Miggie boy should add

View File

@ -1120,6 +1120,7 @@ static int pty_open_slave (const char *pty_name)
}
#if !defined(__osf__)
#if defined (I_FIND) && defined (I_PUSH)
if (!ioctl (pty_slave, I_FIND, "ptem"))
if (ioctl (pty_slave, I_PUSH, "ptem") == -1)
{
@ -1145,6 +1146,7 @@ static int pty_open_slave (const char *pty_name)
return -1;
}
#endif /* sgi || __sgi */
#endif /* I_FIND && I_PUSH */
#endif /* __osf__ */
return pty_slave;