mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Set timeout interval to 0 in ppp so connections don't hang up while
we're doing something lengthy with the disk.
This commit is contained in:
parent
1b62258da5
commit
a4ba0988d9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20259
2 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
* This is probably the last attempt in the `sysinstall' line, the next
|
||||
* generation being slated to essentially a complete rewrite.
|
||||
*
|
||||
* $Id: network.c,v 1.20 1996/12/09 06:45:03 jkh Exp $
|
||||
* $Id: network.c,v 1.21 1996/12/09 08:22:16 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
|
@ -243,6 +243,7 @@ startPPP(Device *devp)
|
|||
fprintf(fp, " set speed %s\n", speed);
|
||||
fprintf(fp, " set device %s\n", devp->devname);
|
||||
fprintf(fp, " set ifaddr %s %s\n", myaddr, provider);
|
||||
fprintf(fp, " set timeout 0\n");
|
||||
fclose(fp);
|
||||
|
||||
if (!Fake && !file_readable("/dev/tun0") && mknod("/dev/tun0", 0600 | S_IFCHR, makedev(52, 0))) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* This is probably the last attempt in the `sysinstall' line, the next
|
||||
* generation being slated to essentially a complete rewrite.
|
||||
*
|
||||
* $Id: network.c,v 1.20 1996/12/09 06:45:03 jkh Exp $
|
||||
* $Id: network.c,v 1.21 1996/12/09 08:22:16 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
|
@ -243,6 +243,7 @@ startPPP(Device *devp)
|
|||
fprintf(fp, " set speed %s\n", speed);
|
||||
fprintf(fp, " set device %s\n", devp->devname);
|
||||
fprintf(fp, " set ifaddr %s %s\n", myaddr, provider);
|
||||
fprintf(fp, " set timeout 0\n");
|
||||
fclose(fp);
|
||||
|
||||
if (!Fake && !file_readable("/dev/tun0") && mknod("/dev/tun0", 0600 | S_IFCHR, makedev(52, 0))) {
|
||||
|
|
Loading…
Reference in a new issue