From owner-freebsd-commit Tue Jul 11 11:37:31 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA29898 for commit-outgoing; Tue, 11 Jul 1995 11:37:31 -0700 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA29829 for cvs-sys-outgoing; Tue, 11 Jul 1995 11:36:19 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA29765 ; Tue, 11 Jul 1995 11:34:31 -0700 Date: Tue, 11 Jul 1995 11:34:31 -0700 From: Bruce Evans Message-Id: <199507111834.LAA29765@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/i386/isa syscons.c syscons.h Sender: commit-owner@FreeBSD.org Precedence: bulk bde 95/07/11 11:34:31 Modified: sys/i386/isa syscons.c syscons.h Log: Fix races in scstart(). q_to_b() wasn't called at spltty(), so there were two races: - q_to_b() might unexpectedly return 0 (e.g, after a keyboard signal flushes the output queue and isn't echoed). ansi_put() interprets 0 bytes as 4GB... - more output (e.g. for echoes) might arrive afer q_to_b() returns 0. Then scstart() returns presumably and the new output might not be handled for a long time. Remove unused function scxint(). Fix prototypes (foo() isn't a prototype).