diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:56:41 +0100 |
commit | d87262dd706fec50cd150aab3e93883b6337466d (patch) | |
tree | 246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-shells/bash/files/bash-4.2-read-retry.patch | |
parent | 71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-shells/bash/files/bash-4.2-read-retry.patch')
-rw-r--r-- | app-shells/bash/files/bash-4.2-read-retry.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/app-shells/bash/files/bash-4.2-read-retry.patch b/app-shells/bash/files/bash-4.2-read-retry.patch deleted file mode 100644 index 44903c68afe1..000000000000 --- a/app-shells/bash/files/bash-4.2-read-retry.patch +++ /dev/null @@ -1,41 +0,0 @@ -https://bugs.gentoo.org/447810 - -fix from upstream to workaround broken BSD kernels - -commit 208fdb509e072977ae7a621e916dfcd32c76047d -Author: Chet Ramey <chet@caleb.ins.cwru.edu> -Date: Mon Mar 4 08:09:29 2013 -0500 - - commit bash-20130201 snapshot - -diff --git a/redir.c b/redir.c -index d7da2f3..aa3d16d 100644 ---- a/redir.c -+++ b/redir.c -@@ -650,7 +650,7 @@ redir_open (filename, flags, mode, ri) - int flags, mode; - enum r_instruction ri; - { -- int fd, r; -+ int fd, r, e; - - r = find_string_in_alist (filename, _redir_special_filenames, 1); - if (r >= 0) -@@ -666,7 +666,16 @@ redir_open (filename, flags, mode, ri) - } - else - { -- fd = open (filename, flags, mode); -+ do -+ { -+ fd = open (filename, flags, mode); -+ e = errno; -+ if (fd < 0 && e == EINTR) -+ QUIT; -+ errno = e; -+ } -+ while (fd < 0 && errno == EINTR); -+ - #if defined (AFS) - if ((fd < 0) && (errno == EACCES)) - { |