From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: [PATCH] Make xc_console less chatty Date: Thu, 04 Aug 2005 15:15:12 -0500 Message-ID: <42F27750.5060500@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000503030300040200090102" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------000503030300040200090102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit xc_console is probably too chatty about termios failures since ssh sessions apparently don't have proper term settings. Signed-off-by: Anthony Liguori Regards, Anthony Liguori --------------000503030300040200090102 Content-Type: text/x-patch; name="xc_console_chatty.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xc_console_chatty.diff" diff -r 60c4cd9ebaa1 tools/consoled/xc_console.c --- a/tools/consoled/xc_console.c Wed Aug 3 16:11:32 2005 +++ b/tools/consoled/xc_console.c Thu Aug 4 15:12:57 2005 @@ -78,23 +78,18 @@ struct termios new_term; if (tcgetattr(fd, old) == -1) { - perror("tcgetattr() failed"); return; } new_term = *old; cfmakeraw(&new_term); - if (tcsetattr(fd, TCSAFLUSH, &new_term) == -1) { - perror("tcsetattr() failed"); - } + tcsetattr(fd, TCSAFLUSH, &new_term); } static void restore_term(int fd, struct termios *old) { - if (tcsetattr(fd, TCSAFLUSH, old) == -1) { - perror("tcsetattr() failed"); - } + tcsetattr(fd, TCSAFLUSH, old); } static int console_loop(int xc_handle, domid_t domid, int fd) @@ -113,7 +108,6 @@ if (errno == EINTR || errno == EAGAIN) { continue; } - perror("select() failed"); return -1; } @@ -131,7 +125,6 @@ (errno == EINTR || errno == EAGAIN)) { continue; } - perror("select() failed"); return -1; } @@ -151,7 +144,6 @@ (errno == EINTR || errno == EAGAIN)) { continue; } - perror("select() failed"); return -1; } --------------000503030300040200090102 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------000503030300040200090102--