mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
If we have tree threads, a following situation can occur: T2: dec task_entries->nr_in_progress T3: dec task_entries->nr_in_progress T3: futex(&task_entries->nr_in_progress, WAKE_UP); T1: unmap task_entries T2: futex(&task_entries->nr_in_progress, WAKE_UP) -> EFAULT -> BUG_ON() This patch adds a futex for synchronising threads. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
crtools ======= An utility to checkpoint/restore tasks. Some code snippets are borrowed from - Linux kernel (http://kernel.org/) - git (http://git-scm.com/) - kvm-tools (https://github.com/penberg/linux-kvm) - ptrace-parasite (https://code.google.com/p/ptrace-parasite/) Many thanks to these projects. Licensed under GPLv2 (http://www.gnu.org/licenses/gpl-2.0.txt)
Description
Languages
C
86%
Python
6.1%
Java
2.6%
Shell
2.6%
Makefile
2%
Other
0.7%