summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/datalink.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-05-28 23:15:40 +0000
committerbrian <brian@FreeBSD.org>1998-05-28 23:15:40 +0000
commitf0bbc1adc545f86776a2ecc51a460599ad4bbc9a (patch)
tree3c7ad7f867e874884f178d616f0c4e2ec2306802 /usr.sbin/ppp/datalink.c
parent88e95865abce6c3049d5a704fdc844d6a83d53e4 (diff)
downloadFreeBSD-src-f0bbc1adc545f86776a2ecc51a460599ad4bbc9a.zip
FreeBSD-src-f0bbc1adc545f86776a2ecc51a460599ad4bbc9a.tar.gz
o Don't forget to close our transfer socket if we cannot
generate the data to transfer. o Transfer uucp lock ownership for the transferred device. o Don't assume we know the correct values of dev_is_modem and mbits after the transfer.
Diffstat (limited to 'usr.sbin/ppp/datalink.c')
-rw-r--r--usr.sbin/ppp/datalink.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/datalink.c b/usr.sbin/ppp/datalink.c
index a41e93b..c7eafab 100644
--- a/usr.sbin/ppp/datalink.c
+++ b/usr.sbin/ppp/datalink.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: datalink.c,v 1.4 1998/05/23 22:24:33 brian Exp $
+ * $Id: datalink.c,v 1.5 1998/05/25 02:22:32 brian Exp $
*/
#include <sys/types.h>
@@ -1022,7 +1022,8 @@ iov2datalink(struct bundle *bundle, struct iovec *iov, int *niov, int maxiov,
}
int
-datalink2iov(struct datalink *dl, struct iovec *iov, int *niov, int maxiov)
+datalink2iov(struct datalink *dl, struct iovec *iov, int *niov, int maxiov,
+ pid_t newpid)
{
/* If `dl' is NULL, we're allocating before a Fromiov() */
int link_fd;
@@ -1048,7 +1049,7 @@ datalink2iov(struct datalink *dl, struct iovec *iov, int *niov, int maxiov)
dl ? realloc(dl->name, DATALINK_MAXNAME) : malloc(DATALINK_MAXNAME);
iov[(*niov)++].iov_len = DATALINK_MAXNAME;
- link_fd = modem2iov(dl ? dl->physical : NULL, iov, niov, maxiov);
+ link_fd = modem2iov(dl ? dl->physical : NULL, iov, niov, maxiov, newpid);
if (link_fd == -1 && dl) {
free(dl->name);
OpenPOWER on IntegriCloud