mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
criu service: support status-fd
Make the --status-fd option also work in 'criu service' mode to avoid race conditions during testing. Signed-off-by: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
f8601b3506
commit
ae76eb349e
@ -1206,6 +1206,9 @@ int cr_service(bool daemon_mode)
|
|||||||
if (setup_sigchld_handler())
|
if (setup_sigchld_handler())
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
if (close_status_fd())
|
||||||
|
return -1;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
int sk;
|
int sk;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user