Date: Wed, 26 Mar 1997 00:07:30 -0800 From: John-Mark Gurney <jmg@hydrogen.nike.efn.org> To: freebsd-current@freebsd.org Subject: patch to make chat work on non-tty devices... Message-ID: <19970326000730.08071@hydrogen.nike.efn.org>
next in thread | raw e-mail | index | archive | help
anybody object to me committing this patch to chat? all it does is not error out when the input isn't a tty... it seems the struct was already there to support non-tty devices... just wasn't properly added... comments? anybody think I should remove the warning, and just let it slide? Index: chat.c =================================================================== RCS file: /home/ncvs/src/usr.bin/chat/chat.c,v retrieving revision 1.6 diff -c -r1.6 chat.c *** chat.c 1997/02/22 19:54:23 1.6 --- chat.c 1997/03/26 08:01:33 *************** *** 542,548 **** if (get_term_param (&t) < 0) { ! sysfatal("Can't get terminal parameters"); } saved_tty_parameters = t; --- 542,550 ---- if (get_term_param (&t) < 0) { ! syslog(LOG_WARNING, "warning: Can't get terminal parameters"); ! have_tty_parameters = 0; ! return; } saved_tty_parameters = t; -- John-Mark Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970326000730.08071>