termux-packages/packages/fish/reader.cpp.patch

18 lines
632 B
Diff
Raw Normal View History

2015-06-13 01:03:31 +02:00
diff -u -r ../fish-2.1.1/reader.cpp ./reader.cpp
--- ../fish-2.1.1/reader.cpp 2014-09-24 05:51:07.000000000 -0400
2015-10-01 01:16:05 +02:00
+++ ./src/reader.cpp 2015-02-05 17:37:16.298415721 -0500
2015-06-13 01:03:31 +02:00
@@ -1961,12 +1961,7 @@
{
/* Try reading from the tty; if we get EIO we are orphaned. This is sort of bad because it may block. */
- char *tty = ctermid(NULL);
- if (! tty)
- {
- wperror(L"ctermid");
- exit_without_destructors(1);
- }
+ char *tty = "/dev/tty";
/* Open the tty. Presumably this is stdin, but maybe not? */
int tty_fd = open(tty, O_RDONLY | O_NONBLOCK);