From 39746e463083845bf84f3f072aef9f668565d274 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Wed, 2 Apr 1997 09:55:26 +0000 Subject: [PATCH] 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 --- usr.bin/chat/chat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/chat/chat.c b/usr.bin/chat/chat.c index ce7c7824778e..f050975ddf5d 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 #include @@ -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;