mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
43f62f42b28f57c405fe602f970238a5aeab80a4
Strictly speaking we have to close all fds before reopening them from the image. This can be done using not yet merged nextfd syscall, but it's not yet merged :( By now just close std and 255 (bash's) descriptors. This is ugly, but I prefer to wait for the nextfd syscall. But skip the init tasks' stds becase the existing zdtm implementation uses system() in such tasks which doesn't work when all fds are closed. 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%