Fredrik Fornwall
9 years ago
3 changed files with 11 additions and 33 deletions
@ -1,17 +0,0 @@ |
|||||
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
|
|
||||
+++ ./src/reader.cpp 2015-02-05 17:37:16.298415721 -0500
|
|
||||
@@ -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); |
|
@ -1,12 +0,0 @@ |
|||||
diff -u -r ../perl-5.20.1/ext/POSIX/POSIX.xs ./ext/POSIX/POSIX.xs
|
|
||||
--- ../perl-5.20.1/ext/POSIX/POSIX.xs 2014-09-14 07:31:01.000000000 -0400
|
|
||||
+++ ./ext/POSIX/POSIX.xs 2015-01-03 09:28:31.432423313 -0500
|
|
||||
@@ -1714,7 +1714,7 @@
|
|
||||
#ifdef HAS_CTERMID_R |
|
||||
s = (char *) safemalloc((size_t) L_ctermid); |
|
||||
#endif |
|
||||
- RETVAL = ctermid(s);
|
|
||||
+ RETVAL = "/dev/tty";
|
|
||||
OUTPUT: |
|
||||
RETVAL |
|
||||
CLEANUP: |
|
Loading…
Reference in new issue