9term: Skip unnecessary ioctl call on AIX.
This commit is contained in:
parent
e9d8c45168
commit
d356d2a8b2
@ -1,2 +1 @@
|
||||
#define TIOCSCTTY 0x540E
|
||||
#include "bsdpty.c"
|
||||
|
||||
@ -63,8 +63,10 @@ childpty(int fd[], char *slave)
|
||||
sfd = open(slave, ORDWR);
|
||||
if(sfd < 0)
|
||||
sysfatal("child open %s: %r\n", slave);
|
||||
#if !defined (__AIX__)
|
||||
if(ioctl(sfd, TIOCSCTTY, 0) < 0)
|
||||
fprint(2, "ioctl TIOCSCTTY: %r\n");
|
||||
#endif
|
||||
return sfd;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user