criu/lib
unichronic 9e5fbcd668 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-01-21 00:25:29 +00:00
..
c libcriu: enable setting of RPC config file 2025-11-05 15:41:34 -08:00
pycriu pycriu: Fix self-dump failure with explicit PID 2026-01-21 00:25:29 +00:00
.gitignore lib: use separate packages for pycriu and crit 2023-11-27 16:47:16 -08:00
Makefile make: improve check for externally managed Python 2024-09-11 16:02:11 -07:00
pyproject.toml pycriu: add missing protobuf dependency 2025-11-05 15:41:34 -08:00
setup.cfg pycriu: add missing protobuf dependency 2025-11-05 15:41:34 -08:00
setup.py lib: use separate packages for pycriu and crit 2023-11-27 16:47:16 -08:00