mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
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:
parent
49570e5d3e
commit
ab76cf3097
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user