Subject: minor pppd problem
To: None <current@NetBSD.ORG>
From: Harry Forker <forker@clio.rz.uni-duesseldorf.de>
List: current
Date: 01/16/1995 22:06:39
I noticed a small problem with pppd on i386:
When running a pppd dialer chatscript via it's connect option
pppd waits forever opening the modem device.
The following fix works for me:
*** main.c.old Sat Dec 24 12:51:57 1994
--- main.c Mon Jan 16 22:04:24 1995
***************
*** 349,355 ****
/*
* Open the serial device and set it up to be the ppp interface.
*/
! if ((fd = open(devnam, O_RDWR /*| O_NDELAY*/)) < 0) {
syslog(LOG_ERR, "open(%s): %m", devnam);
die(1);
}
--- 349,355 ----
/*
* Open the serial device and set it up to be the ppp interface.
*/
! if ((fd = open(devnam, O_RDWR | O_NONBLOCK /*| O_NDELAY*/)) < 0) {
syslog(LOG_ERR, "open(%s): %m", devnam);
die(1);
}
--
Harry Forker forker@convex.rz.uni-duesseldorf.de