]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Add a bodge to make pty masters nonblocking on OS X.
authorSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 12:00:19 +0000 (13:00 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 12:21:50 +0000 (13:21 +0100)
commit69737b24b56d7f7befc27e473f8a61a7e32af5b6
treef2c1b374d874cc8e3feebe1181210b7a55a49bea
parent1ce27010dd060508f349aa25a57f18f61edc0c7b
Add a bodge to make pty masters nonblocking on OS X.

OS X for some reason doesn't let my usual fcntl approach (wrapped in
nonblock()) work on pty masters - the fcntl(F_SETFL) fails, with the
(in this context) hilariously inappropriate error code ENOTTY. Work
around it by instead passing O_NONBLOCK to posix_openpt.
unix/uxpty.c