From c192a4c4f6da907dc0e67a3ca61d806f9a92c931 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Thu, 1 Aug 2013 14:29:20 +1000 Subject: - (djm) [channels.c channels.h] bz#2135: On Solaris, isatty() on a non- blocking connecting socket will clear any stored errno that might otherwise have been retrievable via getsockopt(). A hack to limit writes to TTYs on AIX was triggering this. Since only AIX needs the hack, wrap it in an #ifdef. Diagnosis and patch from Ivo Raisr. --- channels.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'channels.h') diff --git a/channels.h b/channels.h index ffd58072..4fab9d7c 100644 --- a/channels.h +++ b/channels.h @@ -103,7 +103,9 @@ struct Channel { int sock; /* sock fd */ int ctl_chan; /* control channel (multiplexed connections) */ int isatty; /* rfd is a tty */ +#ifdef _AIX int wfd_isatty; /* wfd is a tty */ +#endif int client_tty; /* (client) TTY has been requested */ int force_drain; /* force close on iEOF */ time_t notbefore; /* Pause IO until deadline (time_t) */ -- cgit v1.2.1