[lkml]   [1996]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Bug in serial line hangup code ?
   From: Peter Fox <>
Date: Sun, 5 May 1996 13:45:11 GMT

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.

Furthermore, the design goal is upon hangup to shutdown the serial port
entirely. This guarantees that upon a vhangup(), the modem line is
dropped. Your patches change this.

How about including this lot before 2.0 ?

Your patches could potentially break all manner of programs that assume
the current behavior. I am willing to revisit the design of the entire
tty hangup behavior, but this will involve changing more than just the
serial driver --- and just before 2.0 is not a good time to do this.

- Ted

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