t9term: Skip unnecessary ioctl call on AIX. - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d356d2a8b2436266d7b2fceabc3d281bc3e360a7 | |
parent e9d8c4516847e3d8b36f384fb662b1a490f76f4e | |
Author: Ben Huntsman | |
Date: Mon, 30 Aug 2021 08:41:21 -0700 9term: Skip unnecessary ioctl call on AIX. Diffstat: M src/cmd/9term/AIX.c | 1 - M src/cmd/9term/bsdpty.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) --- | |
diff --git a/src/cmd/9term/AIX.c b/src/cmd/9term/AIX.c | |
t@@ -1,2 +1 @@ -#define TIOCSCTTY 0x540E #include "bsdpty.c" | |
diff --git a/src/cmd/9term/bsdpty.c b/src/cmd/9term/bsdpty.c | |
t@@ -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; } |