As SLIP directly accesses the tty code from its if_start() routine,
mark if_sl as IFF_NEEDSGIANT.
This commit is contained in:
parent
31694af829
commit
c3c926e004
@ -309,7 +309,7 @@ slcreate()
|
||||
#ifdef SLIP_IFF_OPTS
|
||||
SLIP_IFF_OPTS;
|
||||
#else
|
||||
IFF_POINTOPOINT | SC_AUTOCOMP | IFF_MULTICAST;
|
||||
IFF_POINTOPOINT | SC_AUTOCOMP | IFF_MULTICAST | IFF_NEEDSGIANT;
|
||||
#endif
|
||||
sc->sc_if.if_type = IFT_SLIP;
|
||||
sc->sc_if.if_ioctl = slioctl;
|
||||
@ -610,6 +610,8 @@ slstart(tp)
|
||||
int s;
|
||||
register int len = 0;
|
||||
|
||||
GIANT_REQUIRED; /* tty */
|
||||
|
||||
for (;;) {
|
||||
/*
|
||||
* Call output process whether or not there is more in the
|
||||
|
Loading…
Reference in New Issue
Block a user