From owner-freebsd-hackers Sat Dec 20 15:53:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA23790 for hackers-outgoing; Sat, 20 Dec 1997 15:53:55 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA23771 for ; Sat, 20 Dec 1997 15:53:49 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.8.8/8.8.8) with UUCP id AAA20450 for freebsd-hackers@freebsd.org; Sun, 21 Dec 1997 00:53:45 +0100 (CET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.8.8/8.8.5) id AAA05219; Sun, 21 Dec 1997 00:49:37 +0100 (MET) Date: Sun, 21 Dec 1997 00:49:37 +0100 (MET) Message-Id: <199712202349.AAA05219@uriah.heep.sax.de> Mime-Version: 1.0 X-Newsreader: knews 0.9.8 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Organization: Private BSD site, Dresden X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E References: <199712192233.XAA26562@uriah.heep.sax.de> <199712201853.LAA09179@usr09.primenet.com> From: j@uriah.heep.sax.de (J Wunsch) Subject: Re: close() on a modem taking a long time? X-Original-Newsgroups: local.freebsd.hackers To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Terry Lambert wrote: >> It's probably better to fix the application to wait until all output >> has been drained. > > Better to fix the driver to ignore/assert RTS/CTS while DCD remains off, > and to take an on-to-off DCD transition as indicating "flush output to > null". You're only considering modems. How would you force a mouse into delivering DCD or CTS? (That's where the problem happened to me recently, XFree86's server attempted to send something to my mouse, but the mouse, being a plain old MouseSystems one, is only receptive to cat's signals but not to RS-232 signals.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)