Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site watcgl.UUCP Path: utzoo!watmath!watcgl!dmmartindale From: dmmartindale@watcgl.UUCP (Dave Martindale) Newsgroups: net.unix-wizards Subject: Re: ioctl(~CRMOD) mungs last character in queue Message-ID: <2417@watcgl.UUCP> Date: Thu, 12-Apr-84 21:52:59 EST Article-I.D.: watcgl.2417 Posted: Thu Apr 12 21:52:59 1984 Date-Received: Fri, 13-Apr-84 20:59:49 EST References: <1523@vax4.fluke.UUCP> Organization: U of Waterloo, Ontario Lines: 9 What sort of device are you using to drive the serial line which talks to the Spinwriter? The "wait until output drains" feature of ioctl probably just waits **until the last character has been sent to the device**. At that point in time, the second-last character is being transmitted and the last character is almost certainly just sitting in a holding register somewhere. If the driver then handles the change to CRMOD by doing something which changes some of the device's control registers, which may flush or clobber this buffer, you could lose the last character. The problem may be in either the hardware itself or the driver.