From owner-freebsd-bugs Sat Oct 24 20:00:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA29581 for freebsd-bugs-outgoing; Sat, 24 Oct 1998 20:00:07 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA29574 for ; Sat, 24 Oct 1998 20:00:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id UAA22227; Sat, 24 Oct 1998 20:00:01 -0700 (PDT) Received: from sleipnir.watson.org (n234-113.mtholyoke.edu [138.110.234.113]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA29393 for ; Sat, 24 Oct 1998 19:58:36 -0700 (PDT) (envelope-from robert@sleipnir.watson.org) Received: (from robert@localhost) by sleipnir.watson.org (8.9.1/8.9.1) id HAA15863; Sat, 24 Oct 1998 07:43:18 -0400 (EDT) (envelope-from robert) Message-Id: <199810241143.HAA15863@sleipnir.watson.org> Date: Sat, 24 Oct 1998 07:43:18 -0400 (EDT) From: robert@fledge.watson.org Reply-To: robert+freebsd@cyrus.watson.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8438: ex/vi: Error: tcsetattr: Interrupted system call Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8438 >Category: bin >Synopsis: ex/vi: Error: tcsetattr: Interrupted system call >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: Sat Oct 24 20:00:00 PDT 1998 >Last-Modified: >Originator: Robert Watson >Organization: >Release: FreeBSD 3.0-BETA i386 >Environment: 3.0-BETA/RELEASE, using vi against a file in the local FFS file system /usr. X-windows using xterm, XiG's X server for notebooks. >Description: When resizing an xterm and using vi, once in a while I get: ex/vi: Error: tcsetattr: Interrupted system call This kills vi. This is not good. I believe I have observed this both in command and edit modes. >How-To-Repeat: Start editing a file. Now resize your xterm. This does not always appear to happen -- in fact, only infrequently. I'm not sure if there is a correspondence to the size of the file being edited. I am unable to repeat this consistently, but it has happened at least a few times in the past few months. >Fix: I'm on the road, so can't check the source or see if there is already a PR in for this. However, I'd guess that something in curses/ncurses/ whatever vi uses doesn't wrap a syscall in a check for EINTR, and this results in vi terminating from an error it does not expect. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message