diff --git a/src/common/macros.h b/src/common/macros.h index 8397cdee7190ad981d7a9402759af2428a29ce55..3a06ea74c5b4bc04802771220ba239c0f377804d 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -148,11 +148,13 @@ } \ } while (0) +/* ignore timeouts, you must be able to handle them if + * calling cond_timedwait instead of cond_wait */ #define slurm_cond_timedwait(cond, mutex, abstime) \ do { \ int err = pthread_cond_timedwait(cond, mutex, abstime); \ - if (err) { \ - debug("%s:%d %s: pthread_cond_timedwait(): %s", \ + if (err != ETIMEDOUT) { \ + error("%s:%d %s: pthread_cond_timedwait(): %s", \ __FILE__, __LINE__, __func__, \ strerror(err)); \ } \