* pthread_rwlock_rdlock() failing like this is akin to `if` failing;
* we're screwed badly, so let's just pull the trigger.
*/
- pr_op_err("pthread_rwlock_rdlock() returned error code %d. This is too critical for a graceful recovery; I must die now.",
+ pr_crit("pthread_rwlock_rdlock() returned error code %d. This is too critical for a graceful recovery; I must die now.",
error);
- exit(error);
}
void
* Both of them indicate serious programming errors.
*/
error = pthread_rwlock_wrlock(lock);
- if (error) {
- pr_op_err("pthread_rwlock_wrlock() returned error code %d. This is too critical for a graceful recovery; I must die now.",
+ if (error)
+ pr_crit("pthread_rwlock_wrlock() returned error code %d. This is too critical for a graceful recovery; I must die now.",
error);
- exit(error);
- }
}
void
* Both of them indicate serious programming errors.
*/
error = pthread_rwlock_unlock(lock);
- if (error) {
- pr_op_err("pthread_rwlock_unlock() returned error code %d. This is too critical for a graceful recovery; I must die now.",
+ if (error)
+ pr_crit("pthread_rwlock_unlock() returned error code %d. This is too critical for a graceful recovery; I must die now.",
error);
- exit(error);
- }
}
void
unsigned long index;
int error;
- for(index = node->min; index <= node->max; index++) {
+ for (index = node->min; index <= node->max; index++) {
error = param->cb(index, param->arg);
if (error)
return error;