Remove CLOCAL when we're not in -dedicated mode.
PR: 13046 Submitted by: Vsevolod Lobko <seva@alex-ua.com>
This commit is contained in:
parent
6017572204
commit
02b485a4b8
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: tty.c,v 1.9 1999/06/05 21:35:57 brian Exp $
|
||||
* $Id: tty.c,v 1.10 1999/08/06 20:04:07 brian Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -204,8 +204,10 @@ tty_Raw(struct physical *p)
|
||||
else
|
||||
ios.c_cflag |= CLOCAL;
|
||||
|
||||
if (p->type != PHYS_DEDICATED)
|
||||
if (p->type != PHYS_DEDICATED) {
|
||||
ios.c_cflag |= HUPCL;
|
||||
ios.c_cflag &= ~CLOCAL;
|
||||
}
|
||||
|
||||
tcsetattr(p->fd, TCSANOW, &ios);
|
||||
}
|
||||
@ -410,8 +412,10 @@ tty_Create(struct physical *p)
|
||||
ios.c_iflag |= IXOFF;
|
||||
}
|
||||
ios.c_iflag |= IXON;
|
||||
if (p->type != PHYS_DEDICATED)
|
||||
if (p->type != PHYS_DEDICATED) {
|
||||
ios.c_cflag |= HUPCL;
|
||||
ios.c_cflag &= ~CLOCAL;
|
||||
}
|
||||
|
||||
if (p->type != PHYS_DIRECT) {
|
||||
/* Change tty speed when we're not in -direct mode */
|
||||
|
Loading…
Reference in New Issue
Block a user