tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Closing a serial device takes one second



Am 06.02.14 20:47, schrieb Matthias Drochner:
> 
> On Thu, 6 Feb 2014 20:24:52 +0100
> Marc Balmer <marc%msys.ch@localhost> wrote:
>> If, at all, the application using the driver should sleep for one
>> second after closing the device before reopening it.
> 
> Not that I care too much about modems these days, but rather than
> taking the risk to break it for someone who needs it, why don't
> you just clear the HUPCL flag as part of terminal setup in
> your application? AFAIK this is POSIX, so it should be portable.

Because I think it is wrong on many levels to delay for one second in a
driver on close.  Why one second, why not 500ms?  The value is totally
arbitrary and doing a delay at all is absurd.

I checked other BSDs, there is no delay.  Even in NetBSD, this delay is
not done in all ports.

This delay makes no sense, and I don't think there is a great risk of
breaking someone applications.




Home | Main Index | Thread Index | Old Index