aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 4d0a4462578..6f75bbd04fd 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -794,7 +794,7 @@ pty_conversation (FILE *in)
794 { 794 {
795 do { 795 do {
796 res = read (fileno (in), string, BUFSIZ-1); 796 res = read (fileno (in), string, BUFSIZ-1);
797 } while (res == EINTR); 797 } while (res < 0 && errno == EINTR);
798 if (res < 0) 798 if (res < 0)
799 { 799 {
800 reset_tty (); 800 reset_tty ();