From owner-freebsd-bugs Sun Jul 9 14:20:14 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 364A037B9DF for ; Sun, 9 Jul 2000 14:20:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA86079; Sun, 9 Jul 2000 14:20:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from mail.bezeqint.net (mail-a.bezeqint.net [192.115.106.23]) by hub.freebsd.org (Postfix) with ESMTP id 8AAAA37C0E5 for ; Sun, 9 Jul 2000 14:11:56 -0700 (PDT) (envelope-from nimrodm@bezeqint.net) Received: from bsd.net.il ([212.179.170.16]) by mail.bezeqint.net (Sun Internet Mail Server sims.3.5.2000.03.23.18.03.p10) with ESMTP id <0FXG002L4862BJ@mail.bezeqint.net> for FreeBSD-gnats-submit@freebsd.org; Mon, 10 Jul 2000 00:10:51 +0300 (IDT) Received: (from nimrodm@localhost) by localhost.my.domain (8.9.3/8.9.3) id AAA08168; Fri, 23 Jun 2000 00:22:28 +0300 (IDT envelope-from nimrodm) Message-Id: <200006222122.AAA08168@localhost.my.domain> Date: Fri, 23 Jun 2000 00:22:28 +0300 (IDT) From: Nimrod Mesika Reply-To: nimrodm@bezeqint.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/19811: i4b isdntel leaving the tty in a strange state when aborting Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19811 >Category: bin >Synopsis: i4b isdntel leaving the tty in a strange state when aborting >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 09 14:20:04 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Nimrod Mesika >Release: FreeBSD 4.0-STABLE i386 >Organization: none >Environment: i4b acting as an answering machine. isdntel being executed inside a small xterm. >Description: If the terminal is too small isdntel aborts with a fatal error. Before aborting isdntel calls curses' initscr() which changes the state of the tty. endwin() should be called to restore terminal settings and is not in this particular scenario. The user has to 'reset' the terminal to work normally again. >How-To-Repeat: Run isdntel in a small (less than 80x25) xterm. >Fix: /usr/src/usr.sbin/i4b/isdntel/main.c from, lines 311-312: endwin(); } should be switched: } endwin(); i.e., call endwin() in all cases. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message