De-spl kern_connect().
MFC after: 3 days
This commit is contained in:
parent
2f72fe3a9d
commit
107f79ba9e
@ -527,7 +527,6 @@ kern_connect(td, fd, sa)
|
||||
error = EINPROGRESS;
|
||||
goto done1;
|
||||
}
|
||||
s = splnet();
|
||||
SOCK_LOCK(so);
|
||||
while ((so->so_state & SS_ISCONNECTING) && so->so_error == 0) {
|
||||
error = msleep(&so->so_timeo, SOCK_MTX(so), PSOCK | PCATCH,
|
||||
@ -543,7 +542,6 @@ kern_connect(td, fd, sa)
|
||||
so->so_error = 0;
|
||||
}
|
||||
SOCK_UNLOCK(so);
|
||||
splx(s);
|
||||
bad:
|
||||
if (!interrupted)
|
||||
so->so_state &= ~SS_ISCONNECTING;
|
||||
|
Loading…
Reference in New Issue
Block a user