Simplify a FATAL_IF_NEGATIVE
This commit is contained in:
@@ -213,9 +213,7 @@ int tryjoin_client_thread( struct client_tbl_entry *entry, int (*joinfunc)(pthre
|
|||||||
64 );
|
64 );
|
||||||
|
|
||||||
if (joinfunc(entry->thread, &status) != 0) {
|
if (joinfunc(entry->thread, &status) != 0) {
|
||||||
if (errno != EBUSY) {
|
FATAL_UNLESS( errno == EBUSY, "Problem with joining thread" );
|
||||||
FATAL_IF_NEGATIVE(-1, "Problem with joining thread");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
debug("nbd thread %p exited (%s) with status %ld",
|
debug("nbd thread %p exited (%s) with status %ld",
|
||||||
|
Reference in New Issue
Block a user