Correct the return code from pause() during cold startup from zero to
EWOULDBLOCK. This also matches the description in pause(9). Discussed with: kib@ MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
b435332653
commit
54fc03834a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330344
@ -326,7 +326,7 @@ pause_sbt(const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags)
|
||||
sbt = howmany(sbt, SBT_1US);
|
||||
if (sbt > 0)
|
||||
DELAY(sbt);
|
||||
return (0);
|
||||
return (EWOULDBLOCK);
|
||||
}
|
||||
return (_sleep(&pause_wchan[curcpu], NULL, 0, wmesg, sbt, pr, flags));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user