1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

As SLIP directly accesses the tty code from its if_start() routine,

mark if_sl as IFF_NEEDSGIANT.
This commit is contained in:
Robert Watson 2004-08-06 22:41:13 +00:00
parent 0f1f0c5d75
commit ebcd28e669
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133238

View File

@ -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