commit | b1d7b700bbbb02134b85ef252282a672ddf27e29 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Jan 02 20:09:33 2019 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Jan 02 20:12:02 2019 +0100 |
tree | e6b6531fee25b2ca534a94b7d22d13ad9b2895a8 | |
parent | 4afdd138424ab3f9fc4697ab50df0b05e18c34e6 [diff] |
BUG/MEDIUM: log: don't mark log FDs as non-blocking on terminals With the new ability to log to a terminal, it's convenient to be able to use "log stdout" in a config file, except that it now results in setting the terminal to non-blocking mode, breaking every utility relying on stdin afterwards. Since the only reason for logging to a terminal is to debug, do not set the FD to non-blocking mode when it's a terminal. This fix must be backported to 1.9.