/[gentoo-x86]/net-misc/ssh/files/patch-readline.diff
Gentoo

Contents of /net-misc/ssh/files/patch-readline.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (as text) (vendor branch)
Wed Nov 30 09:54:31 2005 UTC (14 years, 4 months ago) by chriswhite
Changes since 1.1: +0 -0 lines
File MIME type: text/x-diff
*** empty log message ***

1 diff -uNr ssh-3.2.9.1.orig/lib/sshreadline/sshreadline.c ssh-3.2.9.1/lib/sshreadline/sshreadline.c
2 --- ssh-3.2.9.1.orig/lib/sshreadline/sshreadline.c 2003-12-03 08:17:20.000000000 -0500
3 +++ ssh-3.2.9.1/lib/sshreadline/sshreadline.c 2004-02-02 11:18:46.000000000 -0500
4 @@ -500,8 +500,9 @@
5 new_term.c_lflag &= ~(ECHO | ICANON);
6 new_term.c_cc[VMIN] = 1;
7 new_term.c_cc[VTIME] = 1;
8 - if (tcsetattr(fd, TCSAFLUSH, &new_term) < 0)
9 + fast: if (tcsetattr(fd, TCSAFLUSH, &new_term) < 0)
10 {
11 + if (EINTR == errno) goto fast;
12 ssh_warning("tcsetattr failed in ssh_rl_set_tty_modes_for_fd: "
13 "fd %d: %.200s", fd, strerror(errno));
14 return -1;
15 @@ -561,8 +562,9 @@
16 {
17 fcntl(fd, F_SETFL, fcntl_flags);
18
19 - if (tcsetattr(fd, TCSAFLUSH, saved_tio) < 0)
20 + fast1: if (tcsetattr(fd, TCSAFLUSH, saved_tio) < 0)
21 {
22 + if (EINTR == errno) goto fast1;
23 ssh_warning("tcsetattr failed in ssh_rl_restore_tty_modes_for_fd: "
24 "fd %d: %.200s", fd, strerror(errno));
25 return -1;
26
27 --

  ViewVC Help
Powered by ViewVC 1.1.20