Don't ignore return value from tsleep().

Spotted by:	charnier
This commit is contained in:
phk 1999-12-19 12:36:41 +00:00
parent d98ad03089
commit 9c4a90731f

View File

@ -117,7 +117,9 @@ diskopen(dev_t dev, int oflags, int devtype, struct proc *p)
while (dp->d_flags & DISKFLAG_LOCK) {
dp->d_flags |= DISKFLAG_WANTED;
tsleep(dp, PRIBIO | PCATCH, "diskopen", hz);
error = tsleep(dp, PRIBIO | PCATCH, "diskopen", hz);
if (error)
return (error);
}
dp->d_flags |= DISKFLAG_LOCK;