lkml.org 
[lkml]   [1996]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Bug in serial line hangup code ?
Date
From
>    ppp enables hangup, and on hangup closes the port. The serial driver
> sets info.count to 0 on hangup, even though my program still has the
> port open. As my program watches info.count to determine if another
> process has the line is open, this is a bit of a problem.
>
> This is the way the serial driver is *designed*. Once a hangup has
> occurred, programs do not logically have the port "open". Access to the
> file descriptors has been revoked, and so they no longer can read or
> write to the serial port.

PMFJI, if I recall the start of the thread (I may be completely wrong),
the idea is to allow serial port monitoring? Why not just have the
info available via /proc/serial/0 (or whatever)?

A simple tagged format like:
CTS: Active
RTS: Inactive
DTR: Active
DSR: Inactive
DCD: Inactive
RX Buffer: 0
TX Buffer: 0

Sure would aid debugging serial problems.

_OR_ a serial entry that you _COULD_ keep open forever, and
inspect it as you pleased (Personally I prefer the previous idea).

--
Andrew E. Mileski
mailto:aem@ott.hookup.net http://www.redhat.com/~aem/
Linux Plug-and-Play Project http://www.redhat.com/pnp/


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.032 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site