Initial push
[termux-packages] / packages / fish / reader.cpp.patch
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
4 @@ -1961,12 +1961,7 @@
5 {
6 /* Try reading from the tty; if we get EIO we are orphaned. This is sort of bad because it may block. */
7
8 - char *tty = ctermid(NULL);
9 - if (! tty)
10 - {
11 - wperror(L"ctermid");
12 - exit_without_destructors(1);
13 - }
14 + char *tty = "/dev/tty";
15
16 /* Open the tty. Presumably this is stdin, but maybe not? */
17 int tty_fd = open(tty, O_RDONLY | O_NONBLOCK);