summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/exec.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-05-24 16:39:17 +0000
committerbrian <brian@FreeBSD.org>1999-05-24 16:39:17 +0000
commitc6862b32c09553d9e7dd35b372cd8c14d6f2cbd3 (patch)
treeb8be473b5d7c5052d1cbdeb29b649e908e467308 /usr.sbin/ppp/exec.c
parent96fd7bde688afba4d5ecad71cff2b31f875067b3 (diff)
downloadFreeBSD-src-c6862b32c09553d9e7dd35b372cd8c14d6f2cbd3.zip
FreeBSD-src-c6862b32c09553d9e7dd35b372cd8c14d6f2cbd3.tar.gz
Correct the ``ignoring sync/async'' warnings so that they show
up with the correct device type. Reassign the correct tcpdevice or execdevice after transfering a link in MP server mode.
Diffstat (limited to 'usr.sbin/ppp/exec.c')
-rw-r--r--usr.sbin/ppp/exec.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/ppp/exec.c b/usr.sbin/ppp/exec.c
index 8519107..4f6bcc7b 100644
--- a/usr.sbin/ppp/exec.c
+++ b/usr.sbin/ppp/exec.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: exec.c,v 1.1 1999/05/08 11:06:30 brian Exp $
+ * $Id: exec.c,v 1.2 1999/05/12 09:48:49 brian Exp $
*/
#include <sys/param.h>
@@ -97,8 +97,10 @@ struct device *
exec_iov2device(int type, struct physical *p, struct iovec *iov,
int *niov, int maxiov)
{
- if (type == EXEC_DEVICE)
+ if (type == EXEC_DEVICE) {
+ physical_SetupStack(p, execdevice.name, PHYSICAL_FORCE_ASYNC);
return &execdevice;
+ }
return NULL;
}
@@ -162,7 +164,7 @@ exec_Create(struct physical *p)
p->fd = fids[0];
waitpid(pid, &stat, 0);
log_Printf(LogDEBUG, "Using descriptor %d for child\n", p->fd);
- physical_SetupStack(p, PHYSICAL_FORCE_ASYNC);
+ physical_SetupStack(p, execdevice.name, PHYSICAL_FORCE_ASYNC);
return &execdevice;
}
}
OpenPOWER on IntegriCloud