ia64/xen-unstable
changeset 6035:f5a5e61f038e
xc_console is probably too chatty about termios failures since ssh
sessions apparently don't have proper term settings.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
sessions apparently don't have proper term settings.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Fri Aug 05 09:00:50 2005 +0000 (2005-08-05) |
parents | 38e6467df0e6 |
children | 5a86ab4c9b79 |
files | tools/consoled/xc_console.c |
line diff
1.1 --- a/tools/consoled/xc_console.c Fri Aug 05 08:59:41 2005 +0000 1.2 +++ b/tools/consoled/xc_console.c Fri Aug 05 09:00:50 2005 +0000 1.3 @@ -78,23 +78,18 @@ static void init_term(int fd, struct ter 1.4 struct termios new_term; 1.5 1.6 if (tcgetattr(fd, old) == -1) { 1.7 - perror("tcgetattr() failed"); 1.8 return; 1.9 } 1.10 1.11 new_term = *old; 1.12 cfmakeraw(&new_term); 1.13 1.14 - if (tcsetattr(fd, TCSAFLUSH, &new_term) == -1) { 1.15 - perror("tcsetattr() failed"); 1.16 - } 1.17 + tcsetattr(fd, TCSAFLUSH, &new_term); 1.18 } 1.19 1.20 static void restore_term(int fd, struct termios *old) 1.21 { 1.22 - if (tcsetattr(fd, TCSAFLUSH, old) == -1) { 1.23 - perror("tcsetattr() failed"); 1.24 - } 1.25 + tcsetattr(fd, TCSAFLUSH, old); 1.26 } 1.27 1.28 static int console_loop(int xc_handle, domid_t domid, int fd) 1.29 @@ -113,7 +108,6 @@ static int console_loop(int xc_handle, d 1.30 if (errno == EINTR || errno == EAGAIN) { 1.31 continue; 1.32 } 1.33 - perror("select() failed"); 1.34 return -1; 1.35 } 1.36 1.37 @@ -131,7 +125,6 @@ static int console_loop(int xc_handle, d 1.38 (errno == EINTR || errno == EAGAIN)) { 1.39 continue; 1.40 } 1.41 - perror("select() failed"); 1.42 return -1; 1.43 } 1.44 1.45 @@ -151,7 +144,6 @@ static int console_loop(int xc_handle, d 1.46 (errno == EINTR || errno == EAGAIN)) { 1.47 continue; 1.48 } 1.49 - perror("select() failed"); 1.50 return -1; 1.51 } 1.52