2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00
Ivan Pravdin 2a428d20ce criu: fix log_keep_err signal deadlock
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>
2025-03-24 08:44:06 -07:00
..
2023-04-15 21:17:21 -07:00
2021-09-03 10:31:00 -07:00
2021-09-03 10:31:00 -07:00
2024-09-11 16:02:11 -07:00
2021-09-03 10:31:00 -07:00
2021-09-03 10:31:00 -07:00
2025-03-24 08:44:06 -07:00
2016-11-03 00:13:04 +03:00
2022-04-28 17:53:52 -07:00
2023-10-22 13:29:25 -07:00
2021-09-03 10:31:00 -07:00