criu/lib/pycriu
unichronic ff2a955d94
pycriu: Fix self-dump failure with explicit PID
When `opts.pid` is explicitly set to `os.getpid()`, `pycriu` fails to
daemonize the `criu` process. This causes `criu` to run as a child of
the dumped process, leading to the error "The criu itself is within
dumped tree".

This can be fixed by modifying `_send_req_and_recv_resp` to check if the
target PID matches the current process PID. If so, it enables daemon
mode, ensuring `criu` is detached and the dump succeeds.

Signed-off-by: unichronic <ishuvam.pal@gmail.com>
2026-07-21 13:40:17 +02:00
..
images crit: show dead task_state 2026-07-21 13:40:17 +02:00
.gitignore lib: use separate packages for pycriu and crit 2023-11-27 16:47:16 -08:00
__init__.py pycriu: Force python protobuf backend in 3.14+ 2026-07-19 20:28:42 +02:00
criu.py pycriu: Fix self-dump failure with explicit PID 2026-07-21 13:40:17 +02:00
Makefile lib: use separate packages for pycriu and crit 2023-11-27 16:47:16 -08:00