diff options
Diffstat (limited to 'winsup/cygwin/tty.cc')
-rw-r--r-- | winsup/cygwin/tty.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index 095c5b5df..829d773aa 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -158,9 +158,10 @@ tty::not_allocated (HANDLE& r, HANDLE& w) then it exists although we may not have privileges to actually use it. */ char pipename[sizeof("ptyNNNN-from-master")]; __small_sprintf (pipename, "pty%d-from-master", get_unit ()); - /* fhandler_pipe::create_selectable returns 0 when creation succeeds */ - return fhandler_pipe::create_selectable (&sec_none, &r, &w, 128 * 1024, - pipename, 0) == 0; + /* fhandler_pipe::create returns 0 when creation succeeds */ + return fhandler_pipe::create (&sec_none, &r, &w, + fhandler_pty_common::pipesize, pipename, + 0) == 0; } bool |