Simplify a FATAL_IF_NEGATIVE

This commit is contained in:
Alex Young
2012-06-11 15:31:59 +01:00
parent 4c52bcd870
commit 5996c8f7ba

View File

@@ -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",