Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_sendfile.c
Show First 20 Lines • Show All 808 Lines • ▼ Show 20 Lines | if (space < rem && | ||||
goto done; | goto done; | ||||
} | } | ||||
/* | /* | ||||
* sbwait drops the lock while sleeping. | * sbwait drops the lock while sleeping. | ||||
* When we loop back to retry_space the | * When we loop back to retry_space the | ||||
* state may have changed and we retest | * state may have changed and we retest | ||||
* for it. | * for it. | ||||
*/ | */ | ||||
error = sbwait(&so->so_snd); | error = sbwait(so, SO_SND); | ||||
/* | /* | ||||
* An error from sbwait usually indicates that we've | * An error from sbwait usually indicates that we've | ||||
* been interrupted by a signal. If we've sent anything | * been interrupted by a signal. If we've sent anything | ||||
* then return bytes sent, otherwise return the error. | * then return bytes sent, otherwise return the error. | ||||
*/ | */ | ||||
if (error != 0) { | if (error != 0) { | ||||
SOCKBUF_UNLOCK(&so->so_snd); | SOCKBUF_UNLOCK(&so->so_snd); | ||||
goto done; | goto done; | ||||
▲ Show 20 Lines • Show All 545 Lines • Show Last 20 Lines |