summaryrefslogtreecommitdiffstats
path: root/usr.bin/chat/chat.c
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>1997-04-02 09:55:26 +0000
committerjmg <jmg@FreeBSD.org>1997-04-02 09:55:26 +0000
commitcbecc84afb7a69e57be9e1b1c24c15fa49556fc7 (patch)
tree5e0d2bedb122b8ce5d13469924e65878f2b7167f /usr.bin/chat/chat.c
parent5718f160bd304771b5598293ca49fba617d77009 (diff)
downloadFreeBSD-src-cbecc84afb7a69e57be9e1b1c24c15fa49556fc7.zip
FreeBSD-src-cbecc84afb7a69e57be9e1b1c24c15fa49556fc7.tar.gz
make it so that chat doesn't fail when it can't get terminal params..
this allows it to work on non-tty input... also don't warn when this happens as it could get noisy... Silence is Acceptance
Diffstat (limited to 'usr.bin/chat/chat.c')
-rw-r--r--usr.bin/chat/chat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/chat/chat.c b/usr.bin/chat/chat.c
index ce7c782..f050975 100644
--- a/usr.bin/chat/chat.c
+++ b/usr.bin/chat/chat.c
@@ -31,7 +31,7 @@
*
*/
-static char rcsid[] = "$Id$";
+static char rcsid[] = "$Id: chat.c,v 1.6 1997/02/22 19:54:23 peter Exp $";
#include <stdio.h>
#include <time.h>
@@ -542,7 +542,8 @@ void set_tty_parameters()
if (get_term_param (&t) < 0)
{
- sysfatal("Can't get terminal parameters");
+ have_tty_parameters = 0;
+ return;
}
saved_tty_parameters = t;
OpenPOWER on IntegriCloud