1 diff -u -r ../fish-2.1.1/reader.cpp ./reader.cpp
2 --- ../fish-2.1.1/reader.cpp 2014-09-24 05:51:07.000000000 -0400
3 +++ ./reader.cpp 2015-02-05 17:37:16.298415721 -0500
6 /* Try reading from the tty; if we get EIO we are orphaned. This is sort of bad because it may block. */
8 - char *tty = ctermid(NULL);
11 - wperror(L"ctermid");
12 - exit_without_destructors(1);
14 + char *tty = "/dev/tty";
16 /* Open the tty. Presumably this is stdin, but maybe not? */
17 int tty_fd = open(tty, O_RDONLY | O_NONBLOCK);