mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
When using pr_err in signal handler, locking is used in an unsafe manner. If another signal happens while holding the lock, deadlock can happen. To fix this, we can introduce mutex_trylock similar to pthread_mutex_trylock that returns immediately. Due to the fact that lock is used only for writing first_err, this change garantees that deadlock cannot happen. Fixes: #358 Signed-off-by: Ivan Pravdin <ipravdin.official@gmail.com> |
||
|---|---|---|
| .. | ||
| arch | ||
| asm-generic | ||
| bitops.h | ||
| bitsperlong.h | ||
| bug.h | ||
| compiler.h | ||
| err.h | ||
| list.h | ||
| lock.h | ||
| page.h | ||
| scm-code.c | ||
| scm.h | ||
| xmalloc.h | ||